Permalink
Browse files

Removes Analytics, updates ads

  • Loading branch information...
Kevin Batdorf
Kevin Batdorf committed Aug 6, 2014
1 parent f08b1ba commit 9cd576a6e05cbd1c525ae4d8857907a43be4c660
Showing with 67 additions and 170 deletions.
  1. +41 −101 examples/page1.html
  2. +26 −69 examples/page2.html
View
@@ -16,15 +16,6 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<title>Liquid Slider Examples</title>
- <script>
- (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
- (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
- m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
- })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
-
- ga('create', 'UA-40983504-1', 'liquidslider.com');
- ga('send', 'pageview');
- </script>
</head>
<body class='no-js'>
<h1 class="gradient"><a href="http://liquidslider.com">Liquid Slider Examples</a></h1>
@@ -44,7 +35,7 @@ <h1 class="gradient"><a href="http://liquidslider.com">Liquid Slider Examples</a
<li><a href="#advanced-controls">Advanced Controls</a></li>
<li><a href="#hooks">Hooks</a></li>
</ul>
- </div>
+ </div>
<div class="pure-menu pure-menu-open">
<a class="pure-menu-heading">Page 2</a>
<ul>
@@ -55,7 +46,7 @@ <h1 class="gradient"><a href="http://liquidslider.com">Liquid Slider Examples</a
<li><a href="#"></a></li>
<li><a href="#"></a></li> -->
</ul>
- </div>
+ </div>
<!-- <div class="pure-menu pure-menu-open">
<a class="pure-menu-heading">Page 2</a>
<ul>
@@ -104,32 +95,15 @@ <h2>How To Install<a href="#how-to-install">#</a></h2>
<hr>
</div>
<div class="content-ad">
-<script type="text/javascript">
- var width = window.innerWidth
- || document.documentElement.clientWidth
- || document.body.clientWidth;
-
- google_ad_client = "ca-pub-3827380040284749";
- 
- if (width > 800) {
- // Load the Leaderboard 728x90 Unit for wide screen
- google_ad_slot = "6954218739";
- google_ad_width = 728;
- google_ad_height = 90;
- } else if ((width < 800) && (width > 400)) {
- // Load the 336x280 Medium Rectangle
- google_ad_slot = "8430951934";
- google_ad_width = 336;
- google_ad_height = 280;
- } else {
- // For small screens, load the 468x60 banner
- google_ad_slot = "9907685131";
- google_ad_width = 468;
- google_ad_height = 60;
- }
-</script>
-<script type="text/javascript"
- src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
+<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+<!-- liquid-slider-resopnsive -->
+<ins class="adsbygoogle"
+ style="display:block"
+ data-ad-client="ca-pub-3827380040284749"
+ data-ad-slot="8410664736"
+ data-ad-format="auto"></ins>
+<script>
+(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<hr>
</div>
@@ -146,7 +120,7 @@ <h2 class="title">Slide 1</h2>
<div>
<h2 class="title">Slide 2</h2>
<p>Proin nec turpis eget dolor dictum lacinia. Nullam nunc magna, tincidunt eu porta in, faucibus sed magna. Suspendisse laoreet ornare ullamcorper. Nulla in tortor nibh. Pellentesque sed est vitae odio vestibulum aliquet in nec leo.</p>
- </div>
+ </div>
<div>
<h2 class="title">Slide 3</h2>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
@@ -172,7 +146,7 @@ <h2 class="title">Slide 1</h2>
<div>
<h2 class="title">Slide 2</h2>
<p>Proin nec turpis eget dolor dictum lacinia. Nullam nunc magna, tincidunt eu porta in, faucibus sed magna. Suspendisse laoreet ornare ullamcorper. Nulla in tortor nibh. Pellentesque sed est vitae odio vestibulum aliquet in nec leo.</p>
- </div>
+ </div>
<div>
<h2 class="title">Slide 3</h2>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
@@ -190,32 +164,15 @@ <h2 class="title">Slide 4</h2>
<hr>
</div>
<div class="content-ad">
-<script type="text/javascript">
- var width = window.innerWidth
- || document.documentElement.clientWidth
- || document.body.clientWidth;
-
- google_ad_client = "ca-pub-3827380040284749";
- 
- if (width > 800) {
- // Load the Leaderboard 728x90 Unit for wide screen
- google_ad_slot = "6954218739";
- google_ad_width = 728;
- google_ad_height = 90;
- } else if ((width < 800) && (width > 400)) {
- // Load the 336x280 Medium Rectangle
- google_ad_slot = "8430951934";
- google_ad_width = 336;
- google_ad_height = 280;
- } else {
- // For small screens, load the 468x60 banner
- google_ad_slot = "9907685131";
- google_ad_width = 468;
- google_ad_height = 60;
- }
-</script>
-<script type="text/javascript"
- src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
+<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+<!-- liquid-slider-resopnsive -->
+<ins class="adsbygoogle"
+ style="display:block"
+ data-ad-client="ca-pub-3827380040284749"
+ data-ad-slot="8410664736"
+ data-ad-format="auto"></ins>
+<script>
+(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<hr>
</div>
@@ -231,7 +188,7 @@ <h2 class="title">Slide 1</h2>
<div>
<h2 class="title">Slide 2</h2>
<p>Proin nec turpis eget dolor dictum lacinia. Nullam nunc magna, tincidunt eu porta in, faucibus sed magna. Suspendisse laoreet ornare ullamcorper. Nulla in tortor nibh. Pellentesque sed est vitae odio vestibulum aliquet in nec leo.</p>
- </div>
+ </div>
<div>
<h2 class="title">Slide 3</h2>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
@@ -255,7 +212,7 @@ <h2 class="title">Slide 4</h2>
if (text === 'Stop')
api.startAutoSlide();
else
- api.stopAutoSlide();
+ api.stopAutoSlide();
$(this).text(text);
});
$('#range-speed').change(function() {
@@ -280,7 +237,7 @@ <h2 class="title">Slide 1</h2>
<h2 class="title">Slide 2</h2>
<p>Proin nec turpis eget dolor dictum lacinia. Nullam nunc magna, tincidunt eu porta in, faucibus sed magna. Suspendisse laoreet ornare ullamcorper. Nulla in tortor nibh. Pellentesque sed est vitae odio vestibulum aliquet in nec leo.</p>
<a href="#4" class="pure-button" onclick="api2.setNextPanel(3);api.updateClass($(this))">Go to slide 4</a>
- </div>
+ </div>
<div>
<h2 class="title">Slide 3</h2>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
@@ -309,39 +266,22 @@ <h3>Cross Links</h3>
<hr>
</div>
<div class="content-ad">
-<script type="text/javascript">
- var width = window.innerWidth
- || document.documentElement.clientWidth
- || document.body.clientWidth;
-
- google_ad_client = "ca-pub-3827380040284749";
- 
- if (width > 800) {
- // Load the Leaderboard 728x90 Unit for wide screen
- google_ad_slot = "6954218739";
- google_ad_width = 728;
- google_ad_height = 90;
- } else if ((width < 800) && (width > 400)) {
- // Load the 336x280 Medium Rectangle
- google_ad_slot = "8430951934";
- google_ad_width = 336;
- google_ad_height = 280;
- } else {
- // For small screens, load the 468x60 banner
- google_ad_slot = "9907685131";
- google_ad_width = 468;
- google_ad_height = 60;
- }
-</script>
-<script type="text/javascript"
- src="https://pagead2.googlesyndication.com/pagead/show_ads.js">
+<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+<!-- liquid-slider-resopnsive -->
+<ins class="adsbygoogle"
+ style="display:block"
+ data-ad-client="ca-pub-3827380040284749"
+ data-ad-slot="8410664736"
+ data-ad-format="auto"></ins>
+<script>
+(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<hr>
</div>
<div id="hooks">
<!-- Slider 5 -->
<h2>Hooks <a href="#hooks">#</a></h2>
- <p>There are four functions that you can hook into. Once right before the slider removes the preloader (preload), once the slider fully loads (onload), at the start of a transition (pretransition), and once a transition completes (callback). Note that this might be slow when testing offline due to Google Analytics delaying page load.</p>
+ <p>There are four functions that you can hook into. Once right before the slider removes the preloader (preload), once the slider fully loads (onload), at the start of a transition (pretransition), and once a transition completes (callback).</p>
<div class="liquid-slider" id="slider-5">
<div>
<h2 class="title">Slide 1</h2>
@@ -350,7 +290,7 @@ <h2 class="title">Slide 1</h2>
<div>
<h2 class="title">Slide 2</h2>
<p>Proin nec turpis eget dolor dictum lacinia. Nullam nunc magna, tincidunt eu porta in, faucibus sed magna. Suspendisse laoreet ornare ullamcorper. Nulla in tortor nibh. Pellentesque sed est vitae odio vestibulum aliquet in nec leo.</p>
- </div>
+ </div>
<div>
<h2 class="title">Slide 3</h2>
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
@@ -366,7 +306,7 @@ <h2 class="title">Slide 4</h2>
<div class="top-bar gradient">Sliding...</div>
<p>After clicking, you will notice tha another event fires, which is the <code class="language-javascript">onload</code> function.</p>
<p>The pretransition function fires as soon as a transition begins. in this case I set a top bar to slide down. Then finally the callback function executes after a transition is complete. This one slides up the top bar and sets random colors to the navigation tabs.</p>
- <p>Additionally, the <code class="language-javascript">pretransition</code> function must include <code class="language-javascript">this.transition();</code> if you plan to edit this setting. Otherwise it won't complete the transition. Note that you may also pause the slider at this point.</p>
+ <p>Additionally, the <code class="language-javascript">pretransition</code> function must include <code class="language-javascript">this.transition();</code> if you plan to edit this setting. Otherwise it won't complete the transition. Note that you may also pause the slider at this point.</p>
<pre class="line-numbers language-javascript"><code>$('#slider-5').liquidSlider({
preloader:true,
preload: function() {
@@ -403,14 +343,14 @@ <h2 class="title">Slide 4</h2>
</a>
<div class="info">
<h2 class="title">by Kevin Batdorf</h2>
- <a href="https://twitter.com/kevinbatdorf" class="twitter-follow-button" data-show-count="false" data-size="large" data-show-screen-name="false" data-dnt="true">Follow @kevinbatdorf</a>
- <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
+ <!-- <a href="https://twitter.com/kevinbatdorf" class="twitter-follow-button" data-show-count="false" data-size="large" data-show-screen-name="false" data-dnt="true">Follow @kevinbatdorf</a> -->
+ <script>/*!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');*/</script>
<p>Hey there fellow developer. I wrote the <a class="link" href="https://github.com/KevinBatdorf/codaslider" title="Liquid Slider">Liquid Slider</a> with the purpose of building a fast, lightweight and flexible slider that runs great on any device. It is also the successor to the <a class="link" href="https://github.com/KevinBatdorf/codaslider" title="Coda Slider download">Coda Slider</a> which has been around for years. I'm a <a class="link" href="http://paniki-studios.com/" title="Websites in Manila" rel="designer">freelance web developer</a> who has been travelling around for the past 5 years. I'm currently living in the Philippines. You can find me on <a class="link" href="http://www.twitter.com/#!/kevinbatdorf?rel=author">Twitter</a>, <a class="link" href="http://plus.google.com/118132051528769460950?rel=author">Google+</a> or check out all my videos on <a class="link" href="http://www.youtube.com/user/kbat82?rel=author">Youtube</a>.</p>
</div>
</div>
</div>
-
-
+
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.touchswipe/1.6.4/jquery.touchSwipe.min.js"></script>
<script src="../src/js/jquery.liquid-slider.js"></script>
Oops, something went wrong.

0 comments on commit 9cd576a

Please sign in to comment.