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
| shortlistings = { | |
| storeInSession: true, | |
| killFunctions : function() { | |
| // kill the functions | |
| } | |
| setStorage : function(type,store) { | |
| var JSON_str = ''; | |
| JSON_str = JSON.stringify(store); |
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
| var items = []; | |
| // We're emulating indexOf, but for objects in the array. | |
| // The function returns an integer (>=0), to the object that matched. | |
| function in_property_array(property, value, arr) { | |
| var i, max = arr.length, current; | |
| for (i = 0; i < max; i++) { | |
| if (arr[i][property] === value) { | |
| return i; |
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
| git add . -A |
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
| <article class="clock"> | |
| <ul> | |
| <li class="time"> | |
| <h1>time</h1> | |
| <time> | |
| <span class="hours"></span> | |
| <span class="minutes"></span> | |
| <span class="seconds"></span> | |
| </time> |
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
| .blocky_hold{ | |
| height: 101px; | |
| width: 135px; | |
| position: relative; | |
| display: block; | |
| } | |
| .blocky{ border: 1px solid #fff; | |
| height: 101px; | |
| width: 135px; | |
| display: block; |
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
| <body> | |
| <a href="#linkToTsnCs" class="showTerms">terms & conditions</a> | |
| <body> |
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
| fileUploadPreview = function () { | |
| var self = this, | |
| uploader = document.getElementById("files"), | |
| output = document.getElementById('preview_image'), | |
| initialise = function() { | |
| uploader.addEventListener('change', handleFileSelect, false); |
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
| var input = '<iframe width="560" height="315" src="http://www.youtube.com/embed/_QtoHqZPkk0" frameborder="0" allowfullscreen></iframe>', | |
| rawurl = new String(input).match(/src=["']?((?:.(?!["']?\s+(?:\S+)=|[>"']))+.)["']?/)[1]; |
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
| <h2>Tabs</h2> | |
| <ul id="tab_list"> | |
| <li><a href="#tab01">tab 01</a></li> | |
| <li><a href="#tab02">tab 02</a></li> | |
| <li><a href="#tab03">tab 03</a></li> | |
| </ul> | |
| <div id="tab_content_container"> | |
| <div id="tab01" class="tab_content"> | |
| <h1>tab 01</h1> | |
| <br> |
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
| function getParameterByName(name) | |
| { | |
| name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]"); | |
| var regexS = "[\\?&]" + name + "=([^&#]*)"; | |
| var regex = new RegExp(regexS); | |
| var results = regex.exec(window.location.search); | |
| if(results == null) | |
| return ""; | |
| else | |
| return decodeURIComponent(results[1].replace(/\+/g, " ")); |
OlderNewer