Change variable definition style
Use 'var' everytime, instead of using ','.
This commit is contained in:
@@ -38,10 +38,11 @@
|
||||
|
||||
<p><strong>Start / End</strong> <span id="start-end">(scroll to the start or end of an axis)</span></p>
|
||||
<script>
|
||||
var container = document.querySelector('.container')
|
||||
, axis = document.getElementById('axis')
|
||||
, direction = document.getElementById('direction')
|
||||
, startEnd = document.getElementById('start-end');
|
||||
var container = document.querySelector('.container');
|
||||
var axis = document.getElementById('axis');
|
||||
var direction = document.getElementById('direction');
|
||||
var startEnd = document.getElementById('start-end');
|
||||
|
||||
Ps.initialize(container);
|
||||
|
||||
document.addEventListener('ps-scroll-y', function () {
|
||||
@@ -83,7 +84,6 @@
|
||||
document.addEventListener('ps-x-reach-end', function () {
|
||||
startEnd.innerHTML = 'Reached end of <em>X-Axis</em>'
|
||||
});
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user