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
Testing |
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 edit() { | |
if(!empty($this->data)) { | |
$this->Profile->saveAll($this->data['Profile']); | |
} | |
else { | |
$this->data['Profile'] = Set::combine($this->Profile->find('all'), '{n}.Profile.id', '{n}.Profile'); | |
} | |
} |
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
/*** | |
* http://www.java-forums.org/java-tips/6296-inner-class-accessing-outer-class.html | |
**/ | |
public class TestIt { | |
public static void main(String a[]){ | |
new TestIt().doit(); | |
/* | |
output : | |
Hello world! |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Lorem ipsum</title> | |
</head> | |
<body> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script>window.jQuery || document.write("<script src='js/libs/jquery-1.6.2.min.js'>\x3C/script>")</script> |
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
bizintel = { | |
/** Should give a brief overview of what kinda scripts are running on this site **/ | |
init: function(){ | |
//call function accordingly | |
banner.init(); | |
new.init(); | |
}, | |
banner:{ | |
config:{ | |
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
$javascript = <<<JS | |
function javascriptFunction() | |
{ | |
/* Some javascript code here */ | |
} | |
JS; |
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(){ | |
var ratioEl = $("#videoratio"); | |
if(ratioEl){ | |
var ratio = ratioEl.html().split(':'); | |
$("#dnn_dnnARTICLE_aembed object").attr('height', 500 * ratio[1] / ratio[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
<html> | |
<head> | |
<title>Video Player</title> | |
</head> | |
<body> | |
<div id="silverlightControlHost"> | |
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480"> | |
<param name="source" value="VideoPlayer.xap"/> | |
<param name="background" value="white" /> | |
<param name="initParams" value="m=http://www.sonypictures.com/movies/21/video/trailer/21_trailer_high.asx" /> |
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
(!window.jQuery || window.jQuery().jquery < '1.2.4a') && /** detect if a better jquery is there before loading. If better jquery is there stop loading to avoid conflicts **/ | |
(function(){if(window.jQuery){var _jQuery=window.jQuery;}var jQuery=window.jQuery=function(selector,context){return new jQuery.prototype.init(selector,context);};if(window.$){var _$=window.$;}window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var isSimple=/^.[^:#\[\.]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}else{if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context);}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector);}else{this[0]=elem;this.length=1;return this;}}else{selector=[];}}}else{return new jQuery(context).find(selector);}}else{if(jQuery.isFunction( |
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($){ | |
$.fn.CwPlayer = function(options){ | |
var settings = { | |
'thumbs' : 'cwVidThumb', | |
'width' : 640, | |
'height' : 360, | |
'source' : '' | |
}; | |
function getVideoTemplate(url, options){ |