PHP Classes

File: js/jScrollPane/script/demo.js

Recommend this page to a friend!
  Classes of Manolo Salsas   Dynamic WordPress Audio Player Plugin   js/jScrollPane/script/demo.js   Download  
File: js/jScrollPane/script/demo.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Dynamic WordPress Audio Player Plugin
Plugin to show audio player in pages with playlist
Author: By
Last change:
Date: 3 years ago
Size: 1,662 bytes
 

Contents

Class file image Download
/*! * Scripts for the demo pages on the jScrollPane website. * * You do not need to include this script or use it on your site. * * Copyright (c) 2010 Kelvin Luck * Dual licensed under the MIT or GPL licenses. */ $(function() { // Copy the pages javascript sourcecode to the display block on the page for easy viewing... var sourcecodeDisplay = $('#sourcecode-display'); if (sourcecodeDisplay.length) { sourcecodeDisplay.empty().append( $('<code />').append( $('<pre />').html( $('#sourcecode').html().replace(/\n\t\t\t/gm, '\n').replace('>', '&gt;').replace('<', '&lt;') ) ) ); $('#css-display').empty().append( $('<code />').append( $('<pre />').html( $('#page-css').html().replace(/\n\t\t\t/gm, '\n') ) ) ); } }); // It seems some people copy this file and put it on their sites despite the message at the top // So let's make sure they don't end up in my stats... if (window.location.hostname == 'jscrollpane.kelvinluck.com') { // Google analytics tracking code for demo site var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-17828883-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })(); } else if(window.location.protocol == 'file:' || window.location.hostname == 'localhost') { // Allow local testing without annoying alerts } else { alert('Do not include demo.js on your site!'); }