Skip to content

Commit

Permalink
Checked compatibility with jQuery v3.1+, all is good. Updated readme …
Browse files Browse the repository at this point in the history
…and all demo pages to use jQuery v3.1.1
  • Loading branch information
terrymun committed Sep 30, 2016
1 parent 5147516 commit d13b8ef
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Here is a gif showing how Paver should work:

![Paver Demo](http://terrymun.github.io/paver/demo/images/paver-demo.gif)

Paver had been tested in the latest versions of Chrome, Firefox, Safari and iOS Safari.
Paver had been tested in the latest versions of Chrome, Firefox, Safari and iOS Safari. It requires jQuery v1.7+, and has been thoroughly tested with jQuery v1.7+, v2+, and v3.1+.

Special thanks to:

Expand Down
2 changes: 1 addition & 1 deletion demo/advanced-usage.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ <h2 id="custom-smoothing-functions">Custom smoothing functions</h2>
</g>
</svg>
<p>Code, design &amp; photos by <a href="http://terrymun.com/" title="Terry Mun">Terry Mun</a> &middot; 2015</p>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.js"></script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
Expand Down
2 changes: 1 addition & 1 deletion demo/custom-triggers-events.html
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ <h3 id="custom-events-scoped">Scoped (Individual)</h3>
</g>
</svg>
<p>Code, design &amp; photos by <a href="http://terrymun.com/" title="Terry Mun">Terry Mun</a> &middot; 2015</p>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.js"></script>
<script type="text/javascript" src="./dist/js/functions.min.js"></script>
</footer>
Expand Down
4 changes: 2 additions & 2 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ <h3>Markup replacement</h3>
<section>
<h2 id="usage">Usage</h2>
<h3 id="dependencies">Dependencies</h3>
<p>Paver requires <a href="http://jquery.com/" title="jQuery">jQuery v1.7 and above</a>, as well as Ben Alman's <a href="https://github.com/cowboy/jquery-throttle-debounce" title="jQuery Throttle/Debounce">jQuery Throttle/Debounce plugin</a>. For jQuery, you can use the one <a href="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">hosted by Google API</a>, or the <a href="https://code.jquery.com/">stable releases hosted by jQuery CDN</a>. For the throttle/debounce plugin, you can use the one <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js">available via cdnjs</a>.</p>
<p>Paver requires <a href="http://jquery.com/" title="jQuery">jQuery v1.7+</a>, as well as Ben Alman's <a href="https://github.com/cowboy/jquery-throttle-debounce" title="jQuery Throttle/Debounce">jQuery Throttle/Debounce plugin</a>. For jQuery, you can use the one <a href="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js">hosted by Google API</a>, or the <a href="https://code.jquery.com/">stable releases hosted by jQuery CDN</a>&mdash;Paver has been thoroughly tested with jQuery v1.7+, v2+, and v3.1+. For the throttle/debounce plugin, you can use the one <a href="https://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js">available via cdnjs</a>.</p>
<p>Remember, for Paver to work, you will have to load both the plugin's JS file (<code>paver.js</code> or <code>paver.min.js</code>, <em>after</em> the dependencies) and the accompanying stylesheet (<code>paver.css</code>).</p>
<h3 id="basic-usage">Basic usage</h3>
<p>For the HTML structure, refer to the <a href="#basic-markup" title="Basic markup for Paver">minimal basic markup</a>. To initialize Paver, simply chain the <code>.paver()</code> method to your selector of choice. With reference to the minimal basic markup, this would be:</p>
Expand Down Expand Up @@ -232,7 +232,7 @@ <h3 id="custom-triggers-events">Custom triggers &amp; events</h3>
</g>
</svg>
<p>Code, design &amp; photos by <a href="http://terrymun.com/" title="Terry Mun">Terry Mun</a> &middot; 2015</p>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery-throttle-debounce/1.1/jquery.ba-throttle-debounce.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.js"></script>
<script type="text/javascript" src="../dist/js/jquery.paver.min.js"></script>
Expand Down
4 changes: 1 addition & 3 deletions demo/usage-notes.html
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ <h4 id="smoothing-function__gaussian">Gaussian</h4>
</g>
</svg>
<p>Code, design &amp; photos by <a href="http://terrymun.com/" title="Terry Mun">Terry Mun</a> &middot; 2015</p>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/prism/0.0.1/prism.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
Expand Down Expand Up @@ -392,8 +392,6 @@ <h4 id="smoothing-function__gaussian">Gaussian</h4>
});
}

console.log(data);

// Map data
var dataX = data.map(function(d,i) { return parseFloat(d.x); }),
dataY = data.map(function(d,i) { return parseFloat(d.y); });
Expand Down

0 comments on commit d13b8ef

Please sign in to comment.