alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
"; } $("#sessionList").html(html); $("#sessionSelector").css("display","block"); } /* This function updates event */ function timedCall() { $.ajax({ url:"events", async: true, error: function (query, status, error) { $.notify({ title: '<strong>No connection!', message: 'DeepLearning4j UiServer seems to be down!' },{ type: 'danger', placement: { from: "top", align: "center" }, }); var keys = Object.keys(events); for (var i = 0; i < keys.length; i++) { $("#"+keys[i]).fadeTo(1,0.2); } events = []; setTimeout(timedCall, 5000); }, success: function( data ) { if (data ==undefined) setTimeout(timedCall, 3000); events = data; var keys = Object.keys(data); for (var i = 0; i < keys.length; i++) { $("#"+keys[i]).fadeTo(1,1); } setTimeout(timedCall, 3000); } }); } timedCall();

Other Java examples (source code examples)

Here is a short list of links related to this Java default.js source code file:

Java example source code file (default.js)

This example Java source code file (default.js) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

deeplearning4j, number, tsne, uiserver

The default.js Java example source code

/*

*/

var events = [];


function trackSessionHandle(event, url) {
   var sessions = events[event];
    if (sessions == undefined || sessions == null) {
        if (event == "TSNE") window.location.href = url;
        console.log("No events");
        $.notify({
            title: '<strong>No data available!',
            message: 'No sessions for ' + event + ' were registered yet...'
        },{
            type: 'warning',
            placement: {
                from: "top",
                align: "center"
            },
        });

        return false;
    }

    console.log("Number of events for [" + event + "]: " + sessions.length);

    if (sessions.length == 1) {
        window.location.href = (url + "?sid=" + sessions[0]);
    } else {
        showSessionSelector(sessions, url);
    }
}


function showSessionSelector(sessions, url) {

    var html = "";
    for (var i = 0; i < sessions.length; i++) {
        html = html + "<tr>
"+ sessions[i]+"
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.