time -> Time
This commit is contained in:
parent
17976954d8
commit
ee53a002b7
@ -59,7 +59,7 @@
|
||||
*/
|
||||
|
||||
(function() {
|
||||
var $, $$, Favicon, NAMESPACE, Recaptcha, anonymize, config, cooldown, d, expandComment, expandThread, g, imageHover, imgExpand, imgGif, imgPreloading, keybinds, log, main, nav, nodeInserted, options, qr, quoteBacklink, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, sauce, threadHiding, threadStats, threading, time, titlePost, ui, unread, updater, watcher, _config, _ref;
|
||||
var $, $$, Favicon, NAMESPACE, Recaptcha, Time, anonymize, config, cooldown, d, expandComment, expandThread, g, imageHover, imgExpand, imgGif, imgPreloading, keybinds, log, main, nav, nodeInserted, options, qr, quoteBacklink, quoteInline, quoteOP, quotePreview, redirect, replyHiding, reportButton, sauce, threadHiding, threadStats, threading, titlePost, ui, unread, updater, watcher, _config, _ref;
|
||||
var __slice = Array.prototype.slice;
|
||||
if (typeof console !== "undefined" && console !== null) {
|
||||
log = function(arg) {
|
||||
@ -1040,9 +1040,9 @@
|
||||
},
|
||||
time: function(e) {
|
||||
$.setValue('time', this.value);
|
||||
time.foo();
|
||||
time.date = new Date();
|
||||
return $('#timePreview').textContent = time.funk(time);
|
||||
Time.foo();
|
||||
Time.date = new Date();
|
||||
return $('#timePreview').textContent = Time.funk(Time);
|
||||
}
|
||||
}
|
||||
};
|
||||
@ -1696,9 +1696,9 @@
|
||||
}
|
||||
}
|
||||
};
|
||||
time = {
|
||||
Time = {
|
||||
init: function() {
|
||||
time.foo();
|
||||
Time.foo();
|
||||
return g.callbacks.push(function(root) {
|
||||
var day, hour, min, month, s, timeEl, year, _, _ref;
|
||||
if (root.className === 'inline') {
|
||||
@ -1709,9 +1709,9 @@
|
||||
year = "20" + year;
|
||||
month -= 1;
|
||||
hour = g.chanOffset + Number(hour);
|
||||
time.date = new Date(year, month, day, hour, min);
|
||||
Time.date = new Date(year, month, day, hour, min);
|
||||
timeEl = $.el('time', {
|
||||
textContent: ' ' + time.funk(time) + ' '
|
||||
textContent: ' ' + Time.funk(Time) + ' '
|
||||
});
|
||||
return $.replace(s, timeEl);
|
||||
});
|
||||
@ -1738,7 +1738,7 @@
|
||||
return s;
|
||||
}
|
||||
});
|
||||
return time.funk = Function('time', "return '" + code + "'");
|
||||
return Time.funk = Function('time', "return '" + code + "'");
|
||||
},
|
||||
day: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
||||
month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
||||
@ -2527,7 +2527,7 @@
|
||||
imgGif.init();
|
||||
}
|
||||
if ($.config('Time Formatting')) {
|
||||
time.init();
|
||||
Time.init();
|
||||
}
|
||||
if ($.config('Sauce')) {
|
||||
sauce.init();
|
||||
|
||||
@ -820,9 +820,9 @@ options =
|
||||
g.hiddenReplies = {}
|
||||
time: (e) ->
|
||||
$.setValue 'time', @value
|
||||
time.foo()
|
||||
time.date = new Date()
|
||||
$('#timePreview').textContent = time.funk time
|
||||
Time.foo()
|
||||
Time.date = new Date()
|
||||
$('#timePreview').textContent = Time.funk Time
|
||||
|
||||
cooldown =
|
||||
init: ->
|
||||
@ -1362,9 +1362,9 @@ sauce =
|
||||
href: prefix + suffix
|
||||
$.append span, $.tn(' '), link
|
||||
|
||||
time =
|
||||
Time =
|
||||
init: ->
|
||||
time.foo()
|
||||
Time.foo()
|
||||
g.callbacks.push (root) ->
|
||||
return if root.className is 'inline'
|
||||
s = $('span[id^=no]', root).previousSibling
|
||||
@ -1373,11 +1373,11 @@ time =
|
||||
year = "20#{year}"
|
||||
month -= 1 #months start at 0
|
||||
hour = g.chanOffset + Number hour
|
||||
time.date = new Date year, month, day, hour, min
|
||||
Time.date = new Date year, month, day, hour, min
|
||||
#XXX /b/ will have seconds cut off
|
||||
|
||||
timeEl = $.el 'time',
|
||||
textContent: ' ' + time.funk(time) + ' '
|
||||
textContent: ' ' + Time.funk(Time) + ' '
|
||||
$.replace s, timeEl
|
||||
|
||||
foo: ->
|
||||
@ -1385,7 +1385,7 @@ time =
|
||||
switch c
|
||||
when 'a', 'A', 'b', 'B', 'd', 'H', 'I', 'm', 'M', 'p', 'P', 'y' then "' + time.#{c}() + '"
|
||||
else s
|
||||
time.funk = Function 'time', "return '#{code}'"
|
||||
Time.funk = Function 'time', "return '#{code}'"
|
||||
day: [
|
||||
'Sunday'
|
||||
'Monday'
|
||||
@ -1909,7 +1909,7 @@ main =
|
||||
imgGif.init()
|
||||
|
||||
if $.config 'Time Formatting'
|
||||
time.init()
|
||||
Time.init()
|
||||
|
||||
if $.config 'Sauce'
|
||||
sauce.init()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user