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
<!-- Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz”." --> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
div { | |
width: 80px; | |
height: 20px; | |
line-height: 20px; |
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
# Custom # | |
################### | |
/vendor | |
/node_modules | |
Homestead.yaml | |
.env | |
npm-debug.log | |
.sass-cache | |
.DS_Store |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Sample Page</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<style> | |
body { |
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 dateExpire = function(){ | |
var today = new Date(); //Get Raw Current Date | |
var dd = today.getDate(); // Formate Date | |
var mm = today.getMonth()+1; // Format Month | |
var yyyy = today.getFullYear(); | |
if(dd<10){dd='0'+dd} if(mm<10){mm='0'+mm} today = mm+'/'+dd+'/'+yyyy; // Assemble mm/dd/yy date | |
$('.boo').each(function(){ | |
if ($(this).attr('data-expire') < today){ | |
$(this).hide(); | |
} else { |
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
/* Colorbox resize function */ | |
var resizeTimer; | |
function resizeColorBox() | |
{ | |
if (resizeTimer) clearTimeout(resizeTimer); | |
resizeTimer = setTimeout(function() { | |
if (jQuery('#cboxOverlay').is(':visible')) { | |
jQuery.colorbox.load(true); | |
} | |
}, 300) |
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
if (!window.addEventListener) { | |
// DO NOTHING | |
//window.attachEvent("orientationchange", resizeColorBox); | |
} | |
else { | |
window.addEventListener("orientationchange", resizeColorBox, 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
$(".scroll").click(function(event){ | |
event.preventDefault(); | |
//calculate destination place | |
var dest=0; | |
if($(this.hash).offset().top > $(document).height()-$(window).height()){ | |
dest=$(document).height()-$(window).height(); | |
}else{ | |
dest=$(this.hash).offset().top; | |
} | |
//go to destination |
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 cache = {}; | |
function getData( val ){ | |
// Return a promise from the cache (if available) | |
// or create a new one (a jqXHR object) and store it in the cache. | |
var promise = cache[val]; | |
if (!promise) { | |
promise = $.ajax('/foo/', { | |
data: { value: val }, |
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
.parsley, .webform-client-form .form-item .parsley { | |
&-success { | |
outline: 1px solid $green; | |
} | |
&-error { | |
outline: 1px solid red; | |
} | |
&-errors-list { | |
display: none; | |
} |