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
/* Fixed ↔ Fluid Width Transitions */ | |
#outer { | |
display: block; | |
background: #fff; | |
width: 0; | |
overflow: visible; | |
padding: 1em; | |
margin: 0 auto; /*center on page*/ | |
-webkit-transition: width 1s linear; | |
} |
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
/* Pure CSS Semantic Horizontal Content Slider */ | |
body { | |
display: block; | |
position: fixed; | |
top: 0; | |
left: -400%; | |
width: 500%; | |
text-align: right; | |
padding: 0; |
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
//uses document because document will be topmost level in bubbling | |
$(document).on('touchmove',function(e){ | |
e.preventDefault(); | |
}); | |
//uses body because jquery on events are called off of the element they are | |
//added to, so bubbling would not work if we used document instead. | |
$('body').on('touchstart','.scrollable',function(e) { | |
if (e.currentTarget.scrollTop === 0) { | |
e.currentTarget.scrollTop = 1; | |
} else if (e.currentTarget.scrollHeight === e.currentTarget.scrollTop + e.currentTarget.offsetHeight) { |
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
{ | |
"Version":"2008-10-17", | |
"Statement":[{ | |
"Sid":"AllowPublicRead", | |
"Effect":"Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action":["s3:GetObject"], | |
"Resource":["arn:aws:s3:::bucket/*" |
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
<CORSConfiguration> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
</CORSRule> | |
</CORSConfiguration> |
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
var Loader = function () { } | |
Loader.prototype = { | |
require: function (scripts, callback) { | |
this.loadCount = 0; | |
this.totalRequired = scripts.length; | |
this.callback = callback; | |
for (var i = 0; i < scripts.length; i++) { | |
this.writeScript(scripts[i]); | |
} |
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 SelectText(element) { | |
var text = document.getElementById(element); | |
if ($.browser.msie) { | |
var range = document.body.createTextRange(); | |
range.moveToElementText(text); | |
range.select(); | |
} else if ($.browser.mozilla || $.browser.opera) { | |
var selection = window.getSelection(); | |
var range = document.createRange(); | |
range.selectNodeContents(text); |
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
var up = true; | |
var value = 0; | |
var increment = 1; | |
var ceiling = 100; | |
var floor = -100; | |
if (up == true && value <= ceiling) { | |
value += increment | |
if (value == ceiling) | |
{up = false;} |
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
{ | |
"filter.commentAfter" : "<!--<%=attr('id', '#') %><%= attr('class', '.')%>-->" | |
} |
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
[ | |
{ | |
"name": "about", | |
"version": "1.10.0" | |
}, | |
{ | |
"name": "animated-page-scroll", | |
"version": "1.2.0" | |
}, | |
{ |
OlderNewer