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
$(document).ready(function(){ | |
$('.ssa_button').click(function(event){ | |
if (console.log) | |
{ | |
console.log('in click handler with ' + $(this).data('vid-id')); | |
} | |
//stop the bubble and prop | |
event.preventDefault(); | |
//cache the jQ object | |
var frame = $('#vid_frame'); |
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 phpvar = $.parseJSON(<?php print json_encode(json_encode($json))?>); |
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
# FIRST, REPLACE UTF-8 characters. | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE28098, "'"); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE28099, "'"); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE2809C, '"'); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE2809D, '"'); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE28093, '-'); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE28094, '--'); | |
UPDATE `t` SET `c` = REPLACE(`c`, 0xE280A6, '...'); | |
# NEXT, REPLACE their Windows-1252 equivalents. | |
UPDATE `t` SET `c` = REPLACE(`c`, CHAR(145), "'"); |
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 klout(){ | |
var klout_score=Math.floor(Math.random()*101); | |
return klout_score; | |
} | |
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
<?php | |
$key = "News_Articles"; | |
$memcached_news_articles = $this->Controller->Memcache->get($key); | |
if(is_array($memcached_news_articles)) | |
{ | |
$news = $memcached_news_articles; | |
} | |
else | |
{ | |
$news = $Article->getNewsArticles(); |
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
/***** Selector Hacks ******/ | |
/* IE6 and below */ | |
* html #uno { color: red } | |
/* IE7 */ | |
*:first-child+html #dos { color: red } | |
/* IE7, FF, Saf, Opera */ | |
html>body #tres { color: red } |
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
<div><label class="bold" for="state">State:</label></div> | |
<select id="state" name="state" class="selectall width50"><option value="">----</option><option value="AL">AL</option><option value="AK">AK</option><option value="AZ">AZ</option><option value="AR">AR</option><option value="CA">CA</option><option value="CO">CO</option><option value="CT">CT</option><option value="DE">DE</option><option value="DC">DC</option><option value="FL">FL</option><option value="GA">GA</option><option value="HI">HI</option><option value="ID">ID</option><option value="IL">IL</option><option value="IN">IN</option><option value="IA">IA</option><option value="KS">KS</option><option value="KY">KY</option><option value="LA">LA</option><option value="ME">ME</option><option value="MD">MD</option><option value="MA">MA</option><option value="MI">MI</option><option value="MN">MN</option><option value="MS">MS</option><option value="MO">MO</option><option value="MT">MT</option><option value="NE">NE</option><option value="NV">NV</option> |
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 fnValidate() | |
{ | |
var aFields = | |
{"First Name":"sFirst", | |
"Last Name":"sLast", | |
"DRI Affiliation":"sAffil1", | |
"DRI Email":"sEmail_DRI"}; | |
var bValid = true; | |
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
FB.getLoginStatus(function(response) { | |
if(response.session) { | |
fbCheckUserPerms(); //show the FB login | |
} else { | |
// no user session available, someone you dont know | |
if(response.status == "notConnected") { | |
// But user is logged into facebook | |
alert("But is logged In"); //show the FB login | |
} else { | |
// show the default login |