(function($){ /* hoverIntent by Brian Cherne */ $.fn.hoverIntent = function(f,g) { // default configuration options var cfg = { sensitivity: 7, interval: 100, timeout: 0 }; // override configuration options with user supplied object cfg = $.extend(cfg, g ? { over: f, out: g } : f ); // instantiate variables // cX, cY = current X and Y position of mouse, updated by mousemove event // pX, pY = previous X and Y position of mouse, set by mouseover and polling interval var cX, cY, pX, pY; // A private function for getting mouse position var track = function(ev) { cX = ev.pageX; cY = ev.pageY; }; // A private function for comparing current and previous mouse position var compare = function(ev,ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); // compare mouse positions to see if they've crossed the threshold if ( ( Math.abs(pX-cX) + Math.abs(pY-cY) ) < cfg.sensitivity ) { $(ob).unbind("mousemove",track); // set hoverIntent state to true (so mouseOut can be called) ob.hoverIntent_s = 1; return cfg.over.apply(ob,[ev]); } else { // set previous coordinates for next time pX = cX; pY = cY; // use self-calling timeout, guarantees intervals are spaced out properly (avoids JavaScript timer bugs) ob.hoverIntent_t = setTimeout( function(){compare(ev, ob);} , cfg.interval ); } }; // A private function for delaying the mouseOut function var delay = function(ev,ob) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); ob.hoverIntent_s = 0; return cfg.out.apply(ob,[ev]); }; // A private function for handling mouse 'hovering' var handleHover = function(e) { // next three lines copied from jQuery.hover, ignore children onMouseOver/onMouseOut var p = (e.type == "mouseover" ? e.fromElement : e.toElement) || e.relatedTarget; while ( p && p != this ) { try { p = p.parentNode; } catch(e) { p = this; } } if ( p == this ) { return false; } // copy objects to be passed into t (required for event object to be passed in IE) var ev = jQuery.extend({},e); var ob = this; // cancel hoverIntent timer if it exists if (ob.hoverIntent_t) { ob.hoverIntent_t = clearTimeout(ob.hoverIntent_t); } // else e.type == "onmouseover" if (e.type == "mouseover") { // set "previous" X and Y position based on initial entry point pX = ev.pageX; pY = ev.pageY; // update "current" X and Y position based on mousemove $(ob).bind("mousemove",track); // start polling interval (self-calling timeout) to compare mouse coordinates over time if (ob.hoverIntent_s != 1) { ob.hoverIntent_t = setTimeout( function(){compare(ev,ob);} , cfg.interval );} // else e.type == "onmouseout" } else { // unbind expensive mousemove event $(ob).unbind("mousemove",track); // if hoverIntent state is true, then call the mouseOut function after the specified delay if (ob.hoverIntent_s == 1) { ob.hoverIntent_t = setTimeout( function(){delay(ev,ob);} , cfg.timeout );} } }; // bind the function to the two event listeners return this.mouseover(handleHover).mouseout(handleHover); }; })(jQuery); //]]>

Sabtu, 18 Juni 2016

More Euro 2016 crowd violence as fighting breaks out ahead of Iceland and Hungary clash



More Euro 2016 crowd violence as fighting breaks out ahead of Iceland and Hungary clash

Early suggestions are the flashpoint came between Hungarian fans and police inside the Stade Velodrome before the Group F match



More crowd violence has broken out at Euro 2016 with fighting in the stands ahead of Iceland vs Hungary.
AFP report that there were clashes inside the stadium in Marseille echoing the scenes that have so far marred the tournament.
Early suggestions are the flashpoint came between Hungarian fans and police inside the Stade Velodrome before the situation was brought under control.

ReutersFans clash before the game


ReutersHungary fans and police before the game


ReutersHungary fans before the game

Flares were thrown on the pitch and fighting broke out in the Croatian end during their 2-2 Group D draw.
English referee Mark Clattenburg was forced to stop the game with four minutes left while a steward was almost hit by a firecracker, as was Croatian goalscorer Ivan Perisic.
Croatia's national team coach Ante Cacic described the individuals responsible for the trouble as "sports terrorists" and European football's governing body has now confirmed the opening of disciplinary proceedings against the national federation.
It has also charged Turkey in relation to crowd trouble during their match against Spain on Friday evening.
UEFA said Croatia's federation had been charged over the setting off of fireworks, the throwing of objects, crowd disturbance and racist behaviour.
Turkey face charges of setting off fireworks, throwing objects and invading the pitch.

ReutersPolice and fans before the game


ReutersPolice before the game


ReutersPolice before the game

Croatia coach Cacic said after the match on Friday: "These people are really scary, that is why I call them hooligans. These are not really Croatian supporters. These are sports terrorists. The main thing our country doesn't want to mess with are these kind of hooligans.
"This is maybe just a question about six to 10 individuals. I hope they can be identified and punished. I hope the Croatia FA is doing everything to prevent this but it is impossible to avoid.
"Ninety-five per cent of our supporters are ashamed in front of Europe, the players are very sad that after playing a beautiful match this happens."

GettyIvan Perisic of Croatia pleads to supporters who have thrown a flare onto the pitch
Croatia's players remonstrated with their supporters but to no avail


ReutersA flare is thrown onto the pitch by fans and is picked up by Croatia's Mario Mandzukic
Croatia striker Mario Mandzukic picks up a flare

Russia have already been handed a suspended disqualification from the tournament, which will be activated if their supporters are involved in any more trouble, following disturbances at the end of their match against England at the Stade Velodrome on June 11.
The Czechs equalised with a penalty in time added on against Croatia after the disturbances and former national team coach Slaven Bilic, working for ITV as a pundit, said: "It's unbelievable what those people are doing.
"The majority of the fans are telling them to not do it. Some of them are there on a mission. It's probably not the last time they'll do it."
The West Ham manager added: "Back home it's not the greatest league but it's competitive. When there's a big derby between (Dinamo) Zagreb and (Hajduk) Split people are not taking their kids because they know it'll be dangerous."

2 komentar: