mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-12 18:52:50 +00:00
updated bunch of file paths and changed the way posts are loaded
This commit is contained in:
28
public/javascript/custom.js
Normal file
28
public/javascript/custom.js
Normal file
@@ -0,0 +1,28 @@
|
||||
$(document).ready(function(){
|
||||
|
||||
var date = new Date();
|
||||
var offset = new Date().getTimezoneOffset();
|
||||
$("#timeZone").val(offset);
|
||||
|
||||
console.log("offset - " + offset);
|
||||
|
||||
$(function() {
|
||||
$( "#dpicker" ).datepicker();
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$( "#datepicker" ).datepicker();
|
||||
});
|
||||
|
||||
$('.btn-file :file').on('fileselect', function(event, label) {
|
||||
console.log(label);
|
||||
$('#input_file').val(label);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$(document).on('change', '.btn-file :file', function() {
|
||||
var input = $(this),
|
||||
label = input.val().replace(/\\/g, '/').replace(/.*\//, '');
|
||||
input.trigger('fileselect', label);
|
||||
});
|
||||
Reference in New Issue
Block a user