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
$(document).ready(function() { | |
if(document.location.search == "?msg=thanks") { | |
$("#alert").html("Thanks for your submission!"); | |
} else if(document.location.search == "?msg=error") { | |
$("#alert").html("There was an error with your submission!"); | |
} else { | |
} | |
}); |
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 equalHeight(group) { | |
tallest = 0; | |
group.each(function () { | |
thisHeight = $(this).height(); | |
if (thisHeight > tallest) { | |
tallest = thisHeight; | |
} | |
}); | |
group.height(tallest); | |
} |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>Document</title> | |
<style type="text/css"> | |
<!-- | |
div.popup { border: solid 10px #ff0000; } | |
--> | |
</style> |
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 gnb = $('#gnb'); | |
var gnbList = $('#gnb > ul > li'); | |
var snb = $('.snb'); | |
var start = 0; | |
var end = 0; | |
timer = setInterval(function(){ | |
$(".tt").text(start+" = "+end); | |
if(start == 1 && end == 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
$(document).ready(function(){ | |
$('#styleSwitch .button').bind('click', function(){ | |
$('body').removeClass();//remove all the other classes | |
$('#styleSwitch .button').removeClass('selected'); | |
$(this).addClass('selected'); | |
switch(this.id){ | |
case 'style1': | |
$('body').addClass('style1'); | |
break; | |
case 'style2': |
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
$("img.captionme").each(function(i) | |
{ | |
var captiontext = $(this).attr('title'); | |
$(this).wrap("<div class='imgpost'></div>"); | |
$(this).parent().append("<div class='thecaption'>" + captiontext + "</div>"); | |
}); |
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
$(".countchars").each(function () { | |
var length = $(this).val().length; | |
$(this).parent().find('#charlength').html('<b>' + length + '</b>'); | |
$(this).keyup(function () { | |
var new_length = $(this).val().length; | |
$(this).parent().find('#charlength').html('<b>' + new_length + '</b>'); | |
if (new_length == "140") { | |
$('#charlength').css('background', 'red'); | |
$('#charlength').css('color', '#000000'); | |
} |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
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
@charset "utf-8"; | |
@import url('../css/guide.css'); | |
/* Normalize ------------------------------------------------ */ | |
html { font-size: 100%; overflow-y: scroll; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } | |
html, body { margin: 0px; padding: 0px; } | |
body, p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, table, th, td, form, fieldset, legend, input, textarea, button, select {-webkit-text-size-adjust: 100%; } | |
header, footer, section, article, aside, nav, hgroup, details, menu, figure, figcaption { display: block; } | |
em, address { font-style: normal; } |