It assumes the highest positive signed 32-bit float value for numbers.
In other words, 2147483647
(or 0x7FFFFFFF
or 2^31-1
).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//jquery-dosomething-ES6.js | |
//after modification | |
//assumes jQuery is avail as global or via NPM etc | |
import jQuery from 'jquery' | |
export default function() { | |
+function($) { | |
var $this = $(this); | |
var newText = $this.data('text'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import $ from 'jquery'; | |
import plugin from './plugin'; | |
class ScrollToTop { | |
constructor(element, options) { | |
const $element = $(element); | |
$(window).scroll(function () { | |
if ($(this).scrollTop() > options.offset) { | |
$element.fadeIn(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Generated on 2014-02-21 | |
* generator-assemble v0.4.9 | |
* https://github.com/assemble/generator-assemble | |
* | |
* Copyright (c) 2014 Hariadi Hinta | |
* Licensed under the MIT license. | |
*/ | |
'use strict'; |