JSFiddle

  • cloud player basic

    No-Library (pure JS), HTML, CSS, JavaScript

    SC.initialize({
        client_id: '522eef33018b0f73bf8a64f55df40ccc'
    });
    
    var d = document.getElementById("audio-test"); 
    
    SC.get("/tracks/178345187", {}, function(sound){
        d.setAttribute("src", sound.stream_url ...
  • Stackoverflow Response: Export to CSV using jQuery and html #4 is the latest revision

    http://stackoverflow.com/questions/16078544/export-to-csv-using-jquery-and-html

    $(document).ready(function () {
    
        function exportTableToCSV($table, filename) {
    
            var $rows = $table.find('tr:has(td)'),
    
                // Temporary delimiter characters unlikely to be ...
  • Stackoverflow Response: Export to CSV using jQuery and html

    http://stackoverflow.com/questions/16078544/export-to-csv-using-jquery-and-html

    $(document).ready(function () {
    
        function exportTableToCSV($table, filename) {
    
            var $rows = $table.find('tr:has(td)'),
    
                // Temporary delimiter characters unlikely to be ...
  • download file with url component #44 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

    function download(filename, text) {
        var pom = document.createElement('a');
        pom.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
        pom ...
  • angular controller repeat

    AngularJS 1.0.3, HTML, CSS, JavaScript

    var myApp = angular.module('myApp', []);
    
    function MyCtrl($scope) {
    
        $scope.candidates = {
      presidents : [
        {
          no:1,
          name:'Brooke Jovi Jon',
          votes:51,
        },
        {
          no ...
  • hover css link transition #6 is the latest revision

    No-Library (pure JS), HTML, CSS, JavaScript

        <a href="#">Link Hover</a>
  • Bootstrap 3 Template

    This is a simple Twitter Bootstrap 3 template. You can fork it to get a ready to use Bootstrap 3 fiddle.

    /* Latest compiled and minified JavaScript included as External Resource */
  • seconds to hh mm ss #296 is the latest revision

    Convert seconds to hh-mm-ss format

    /** 
     * Convert seconds to hh-mm-ss format.
     * @param {number} totalSeconds - the total seconds to convert to hh- mm-ss
    **/
    var SecondsTohhmmss = function(totalSeconds ...
  • jquery remove span #32 is the latest revision

    jQuery 2.0.2, HTML, CSS, JavaScript

    $(document).ready(function () {
        $('span.childSpanClass').remove();
    });
    
  • js list append #2 is the latest revision

    jQuery 1.11.0, HTML, CSS, JavaScript

    var li = $('<li>a new list</li>');
    //li.html('Test!');
    
    $("#AreaList_chosen > div.chosen-drop ul").append(li);
    $(".chosen-results").append(li)