Skip to content

Commit

Permalink
Moar cleanup...
Browse files Browse the repository at this point in the history
  • Loading branch information
VaMaster committed Oct 30, 2018
1 parent 8f805c0 commit 8b0e775
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
3 changes: 0 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,12 @@ function setBackground(last) {
var cv="";
$('#bgwrap').append("<div class='bg hidden'></div>");
var imgUrl = "https://img.phlexchat.com?new=true"+(last ? "&last" : "")+"&height=" + $(window).height() + "&width=" + $(window).width() + "&v=" + (Math.floor(Math.random() * (1084))) + cv;
console.log("Setting image source to " + imgUrl);

var newDiv = $('.bg').last();

var img = $('<img src="'+imgUrl+'" class="bgImg"/>').on('load', function(){
console.log("Image loaded.");

$.when(newDiv.fadeIn(500)).done(function() {
console.log("Fading in...");
newDiv.removeClass('hidden');
$("#bgwrap div:not(:last-child)").remove();
})
Expand Down
6 changes: 6 additions & 0 deletions php/widget/widget.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?php
/**
* Created by PhpStorm.
* User: digitalhigh
* Date: 10/30/2018
* Time: 9:16 AM
*/

namespace digitalhigh;

Expand Down
6 changes: 6 additions & 0 deletions php/widget/widgetException.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?php
/**
* Created by PhpStorm.
* User: digitalhigh
* Date: 10/30/2018
* Time: 9:25 AM
*/

namespace digitalhigh;

Expand Down
6 changes: 6 additions & 0 deletions php/widget/widgetGeneric.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?php
/**
* Created by PhpStorm.
* User: digitalhigh
* Date: 10/30/2018
* Time: 9:53 AM
*/

namespace digitalhigh;

Expand Down
6 changes: 6 additions & 0 deletions php/widget/widgetServiceMonitor.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
<?php
/**
* Created by PhpStorm.
* User: digitalhigh
* Date: 10/30/2018
* Time: 9:18 AM
*/

namespace digitalhigh;

Expand Down
1 change: 0 additions & 1 deletion service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ self.addEventListener('install', function (e) {
});

self.addEventListener('fetch', function (event) {
console.log(event.request.url);
event.respondWith(
caches.match(event.request).then(function (response) {
if (event.request.cache === 'only-if-cached' && event.request.mode !== 'same-origin') return;
Expand Down

0 comments on commit 8b0e775

Please sign in to comment.