Just insert the following code at the top of 'head'.
<script type="text/javascript" src="https://getfirebug.com/firebug-lite.js#startOpened=true"></script>
/* Portrait */
@media screen and (orientation:portrait) {
/* Portrait styles */
}
/* Landscape */
@media screen and (orientation:landscape) {
/* Landscape styles */
}
/* iPad [portrait + landscape] */
/* Portrait */
@media only screen and (max-device-width: 1024px) and (orientation:portrait){
}
/* Landscape */
@media only screen and (max-device-width: 1024px) and (orientation:landscape) {
}
/* iPhone [portrait + landscape] */
/* Portrait */
@media screen and (max-width: 320px) {
}
/* Landscape */
error_reporting(E_ALL);
ini_set('display_errors', '1');
Added 9/23/2011:
http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutoria...
/* =========================================================== * Filename: * Description: * Version: * Website: * Author: * =========================================================== */
$(document).ready(function(){
$("html, body").animate({ scrollTop : 0 }, 'slow');
return false;
});
/* The following will generate a random number between 1 and 100.
var numRand = Math.floor(Math.random()*101);
if( $('#foo').is(':visible') ) {
// it's visible, do something
}
else {
// it's not visible so do something else
}
var jQueryVersion = $().jquery; console.log(jQueryVersion); // logs 1.x.x
// code to check if jquery is loaded already
/*
* ------------------------------------------------------
* First Method
* ------------------------------------------------------
*/
try{
var jQueryIsLoaded=jQuery;
jQueryIsLoaded=true;
}
catch(err){
var jQueryIsLoaded=false;
}
if(jQueryIsLoaded){
// jQuery is loaded
}
else{
// jQuery NOT loaded
}
/*
* ------------------------------------------------------
* Second Method
* ------------------------------------------------------
*/
if (typeof jQuery == 'undefined')
{