This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
☆○○○について | |
2011/xx/xx isora1988 | |
■ このプログラムは? | |
//< 概要を書く----- | |
■ 必要なもの |
This file contains 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
function getPrefix( prop ){ | |
var vendorPrefixes = ['Moz','Webkit','Khtml','O','ms'], | |
style = document.createElement('div').style, | |
upper = prop.charAt(0).toUpperCase() + prop.slice(1), | |
pref, len = vendorPrefixes.length; | |
while( len-- ){ | |
if((vendorPrefixes[len] + upper) in style){ | |
pref = (vendorPrefixes[len]); | |
} | |
} |
This file contains 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
// Template | |
// (c) 2011 Jason Byrne, MileSplit | |
// May be freely distributed under the MIT license, with attribution. | |
// | |
// ** Usage ** | |
// | |
// HTML: | |
// <script type="text/html" id="tmplArticle"><h1>${Title}</h1></script> | |
// | |
// JavaScript: |
This file contains 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
javascript:(function(){window.open(document.getElementById('imgEncircle').firstChild.getAttribute('src')%2C'_blank')}()) |
This file contains 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
javascript: (function(){ | |
var d = window.document; | |
var s = d.createElement('script'); | |
s.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js'; | |
d.body.appendChild(s); | |
setTimeout(function(){ | |
$("img").each(function(){ | |
var src = $(this).attr("src"); | |
var img = new Image(); | |
img.src = src; |