Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged js



« Prev 1 2 3 4
  1. FAV

    Codepad.co - Set Default Language to JavaScript.js Last active 11 minutes ago

    When creating a new https://codepad.co/ snippet, the default language will be set to 'JavaScript'.
    JavaScript 6 views posted 4 years ago by avansare
  2. FAV

    NodeJS: Turn image into Vector art silhouette

    I was recently asked to turn a bitmap image (.bmp) into a vector graphic and I wanted to do it using Javascript. NodeJS did the trick with a little help from Node Package Manager and Brew Package Manager. The first step was to install potrace then i...
    JavaScript 12 views posted 5 years ago by chrisaiv
  3. FAV

    Credit Card Parser & Validator

    With publicly available information and a little math it is possible to not only validate a given card number, but to determine the financial institution that issued the card, the type of industry the issuer belongs to, the actual account number and...
    JavaScript 14 views posted 5 years ago by geneticcode
  4. FAV

    BXSlider Stop Slide on Transition

    #bxSlider Prevent bxSlider stop auto slides transition, when navigating through slides.
    JavaScript 9 views posted 5 years ago by flexyournoggin
  5. FAV

    Populate Table from Inline Json Data In Angular Js

    Populating Table from Inline Json Data in Angular js
    JavaScript 10 views posted 5 years ago by bitsofcodec
  6. FAV

    Adding/remove commas in digits

    Add / Remove comma for number in the thousands. Ex: 1,000 Useful for grabbing input values to format then display, remove the comma and convert back to number to do math.
    JavaScript 24 views posted 6 years ago by supawaza
  7. FAV

    External JavaScript File

    <script></script>
    JavaScript 9 views posted 6 years ago by thesmu
  8. FAV

    .ready() | jQuery API Documentation

    $(document).ready(function() { // Handler for .ready() called. });
    JavaScript 11 views posted 6 years ago by thesmu
  9. FAV

    Ajax File Include

    Include any external text file within html; HTML, CSS and Javascript all work.
    JavaScript 9 views posted 6 years ago by nshakin
  10. FAV

    Javascript Updating Copyright

    Self updating javascript copyright date
    JavaScript 7 views posted 6 years ago by nshakin
  11. FAV

    layout with scrolls

    # layout para un panel con scrollbars
    JavaScript 9 views posted 6 years ago by lecksfrawen
  12. FAV

    Redirect with a Timer

    You can use JavaScript window.location to redirect a visitor to a required page. You may have seen this feature used by sites with full page ads, or to redirect visitors to the site's new domain name. You can add also a timer to the script that will...
    JavaScript saved by 4 people 72 views posted 6 years ago by apphp-snippets
  13. FAV

    Safe replace {{some_var}} in JS strings

    For those moments of weakness when .replace() looks like a good idea...
    JavaScript 7 views posted 7 years ago by inreflection7
  14. FAV

    JavaScript Quiz Template

    **Simple JavaScript Quiz** Edit the main quiz array with your own questions, then publish. Since it's an entire HTML file, it's best to save this file on a server and embed it as needed using an iframe tag.
    JavaScript 38 views posted 7 years ago by jrue
  15. FAV

    Get URL Parameter

    Code from https://snipt.net/geekyjohn/get-url-param/ updated so that most jslint issues are resolved, and updated the return to use a guard condition instead of a separate if statement.
    JavaScript saved by 3 people 23 views posted 7 years ago by pmw57
  16. FAV

    Class handling functions

    Standard hasClass, addClass, and removeClass functions, reworked so that jsLint is happier about them, and fixed the removeClass function so that things are trimmed after removing a class name.
    JavaScript saved by 6 people 16 views posted 7 years ago by pmw57
  17. FAV

    NodeJS: Delivering a crossdomain.xml file using Express.JS

    There are many ways to deliver a crossdomain.xml file through NodeJS or Express.js. Here is one solution
    JavaScript 11 views posted 7 years ago by chrisaiv
  18. FAV

    Tracking : GetClicky

    To be added to all Landing Pages and other new works
    JavaScript 5 views posted 7 years ago by jburcsik
  19. FAV

    Add trim method to String class

    Add trim method to String class
    JavaScript 9 views posted 8 years ago by kajinka13
  20. FAV

    Remotely Trigger Varien Tabs Class

    extends the default varien "tabs" class to allow other links on the page to open a tab
    JavaScript 10 views posted 8 years ago by flintcreative
  21. FAV

    Parse URI parameters with Prototype JS

    This will return the value of "param" form the URI. For example if you have www.example.com/index.html?param=some_value it will return "some_value". NOTE! This only works if you use Prototype JavaScript framework.
    JavaScript 8 views posted 8 years ago by srka
  22. FAV

    swtich with range in javascript

    na
    JavaScript 8 views posted 8 years ago by stavelin
  23. FAV

    Onlock clear value for Input

    JavaScript 3 views posted 8 years ago by bubaphex
  24. FAV

    Target specific browsers in CSS with JS

    Will produce output like this: <html> ... </html> <html> ... </html> Target in CSS like this: html[data-useragent*='Chrome/13.0'] .nav {background:url(img/radial_grad.png) center bottom no-repeat;} or html[data-useragent*=...
    JavaScript 8 views posted 8 years ago by reverend
  25. FAV

    HTML5 Details, Summary fallbakc w/ JS

    JavaScript 3 views posted 8 years ago by reverend
  26. FAV

    jLim - compact JavaScript framework

    jLim is a small JavaScript base code. It can be used to built your own JavaScript library or framework.
    JavaScript 5 views posted 8 years ago by freelancephp
  27. FAV

    Calling external JS or JQuery

    JavaScript 4 views posted 8 years ago by ariunbolor
  28. FAV

    Hotdog.hu - hide counters

    This small javascript hides the table that holds statistical counters on hotdog.hu profile pages [footer part].
    JavaScript 4 views posted 8 years ago by Oroborus9
  29. FAV

    JS: Turn text into TitleCase

    I love this script. It's perfect for anyone trying to transforms headlines into some sort of Title Case format without using CSS
    JavaScript 5 views posted 8 years ago by chrisaiv
  30. FAV

    Canvas image scale 2x w/o anti-alias in Chrome

    Somewhere along the road the people behind canvas decided that all image scaling is anti-aliased by default. Firefox has 'mozImageSmoothingEnabled' while Chrome et company don't. This is a proof of concept script to resize 'virtualCanvas' two time...
    JavaScript 6 views posted 8 years ago by volvis
« Prev 1 2 3 4