Sha256: 6189b81dc08fef8e05083dcd2898ce1fe445b22a46ace5a29a2f21aab664379c

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

//=======================================================================
//                                                                       
// script.js
// by Antun Karlovac
//                                                                       
// Laszlo Tutorials include
//                                                                       
//=======================================================================

//* A_LZ_COPYRIGHT_BEGIN ******************************************************
//* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.            *
//* Use is subject to license terms.                                          *
//* A_LZ_COPYRIGHT_END ********************************************************

function getCurrentDate() {
    var now = new Date();
    var weekdays = new Array( 'Sunday',
                             'Monday', 
                             'Tuesday', 
                             'Wednesday', 
                             'Thursday', 
                             'Friday', 
                             'Saturday'
                            );
    var weekday = weekdays[now.getDay()];
    var months = new Array( 'January',
                            'February',
                            'March',
                            'April',
                            'May',
                            'June',
                            'July',
                            'August',
                            'September',
                            'October',
                            'November',
                            'December'
                           );
    var month = months[now.getMonth()];
    var year = now.getFullYear();
    var dateStr = weekday + ", " + month + " " + now.getDate();
    dateStr += ", " + year;
    dateStr = '<span class="todayDate">' + dateStr + '</span>';
    return dateStr;
}


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
leftplayer-0.1.1 src/lps-4.9.0/Server/lps-4.9.0/lps/includes/script.js
leftplayer-0.1 src/lps-4.9.0/Server/lps-4.9.0/lps/includes/script.js