From 5eb10ee12d3b4baac3e2ecb71eef323cdb611c52 Mon Sep 17 00:00:00 2001 From: LN Date: Sat, 28 Jan 2023 12:40:41 -0500 Subject: [PATCH] Old html and js --- 404.html | 157 +++++++++++++++++ README.md | 8 +- index.html | 363 +++++++++++++++++++++++++++++++++++++++ js/cookies.js | 32 ++++ js/ga.js | 6 + js/jquery.jnotify.js | 209 ++++++++++++++++++++++ js/jquery.jnotify.min.js | 21 +++ 7 files changed, 795 insertions(+), 1 deletion(-) create mode 100644 404.html create mode 100644 index.html create mode 100644 js/cookies.js create mode 100644 js/ga.js create mode 100644 js/jquery.jnotify.js create mode 100644 js/jquery.jnotify.min.js diff --git a/404.html b/404.html new file mode 100644 index 0000000..0446544 --- /dev/null +++ b/404.html @@ -0,0 +1,157 @@ + + + + + Page Not Found :( + + + +
+

Not found :(

+

Sorry, but the page you were trying to view does not exist.

+

It looks like this was the result of either:

+ + + +
+ + diff --git a/README.md b/README.md index 7ad3a78..f2e6769 100644 --- a/README.md +++ b/README.md @@ -1 +1,7 @@ -# deathraygames-website \ No newline at end of file +# Deathraygames.com Website + +***The homepage for all deathray games*** + +https://deathraygames.com + +https://deathraygames.github.io/deathraygames-website diff --git a/index.html b/index.html new file mode 100644 index 0000000..1f69628 --- /dev/null +++ b/index.html @@ -0,0 +1,363 @@ + + + + Deathray Games + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Deathray Games Logo Banner +

Deathray Games

+

Indie/Hobby Video Games and Paper RPGs

+
+ +
+ + +

The Most Up-to-date Info

+ +
+ +

Free Web Games

+

+ Please note that most of these games were made for game jams, such as Ludum Dare, and as such are not very polished and may be incomplete. Games marked + as "favorite" are typically more enjoyable, complete games. +

+ + +

More Links

+ +

Other Gaming Creations

+ +
+ + + Copyright © 2009-2017 Luke Nickerson. + All Rights Reserved +
+ Names are Trademarked ™ +
+ All code is open-source; see the individual project for the particular license +
+ + + + + + + \ No newline at end of file diff --git a/js/cookies.js b/js/cookies.js new file mode 100644 index 0000000..6a03c4e --- /dev/null +++ b/js/cookies.js @@ -0,0 +1,32 @@ + +/* +* Cookie functions +* +* from http://www.quirksmode.org/js/cookies.html +* +*/ + +function createCookie(name,value,days) { + if (days) { + var date = new Date(); + date.setTime(date.getTime()+(days*24*60*60*1000)); + var expires = "; expires="+date.toGMTString(); + } + else var expires = ""; + document.cookie = name+"="+value+expires+"; path=/"; +} + +function readCookie(name) { + var nameEQ = name + "="; + var ca = document.cookie.split(';'); + for(var i=0;i < ca.length;i++) { + var c = ca[i]; + while (c.charAt(0)==' ') c = c.substring(1,c.length); + if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); + } + return null; +} + +function eraseCookie(name) { + createCookie(name,"",-1); +} diff --git a/js/ga.js b/js/ga.js new file mode 100644 index 0000000..da81adc --- /dev/null +++ b/js/ga.js @@ -0,0 +1,6 @@ + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); + ga('create', 'UA-7118348-1', 'deathraygames.com'); + ga('send', 'pageview'); \ No newline at end of file diff --git a/js/jquery.jnotify.js b/js/jquery.jnotify.js new file mode 100644 index 0000000..dc7c686 --- /dev/null +++ b/js/jquery.jnotify.js @@ -0,0 +1,209 @@ +/*! + * jNotify jQuery Plug-in + * + * Copyright 2010 Giva, Inc. (http://www.givainc.com/labs/) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Date: 2010-09-30 + * Rev: 1.1.00 + */ +;(function($){ + $.jnotify = function (m, o, d){ + return new jNotify(m, o, d); + }; + + // set the version of the plug-in + $.jnotify.version = "1.1.00"; + + var $jnotify, queue = [], count = 0, playing = false, paused = false, queuedId, queuedNote, + // define default settings + defaults = { + // define core settings + type: "" // if a type is specified, then an additional class of classNotification + type is created for each notification + , delay: 2000 // the default time to show each notification (in milliseconds) + , sticky: false // determines if the message should be considered "sticky" (user must manually close notification) + , closeLabel: "×" // the HTML to use for the "Close" link + , showClose: true // determines if the "Close" link should be shown if notification is also sticky + , fadeSpeed: 1000 // the speed to fade messages out (in milliseconds) + , slideSpeed: 250 // the speed used to slide messages out (in milliseconds) + + // define the class statements + , classContainer: "jnotify-container" // className to use for the outer most container--this is where all the notifications appear + , classNotification: "jnotify-notification" // className of the individual notification containers + , classBackground: "jnotify-background" // className of the background layer for each notification container + , classClose: "jnotify-close" // className to use for the "Close" link + , classMessage: "jnotify-message" // className to use for the actual notification text container--this is where the message is actually written + + // event handlers + , init: null // callback that occurs when the main jnotify container is created + , create: null // callback that occurs when when the note is created (occurs just before appearing in DOM) + , beforeRemove: null // callback that occurs when before the notification starts to fade away + , remove: null // callback that occurs when notification is removed + , transition: null // allows you to overwrite how the transitions between messages are handled + // receives the following arguments: + // container - jQuery object containing the notification + // message - jQuery object of the actual message + // count - the number of items left in queue + // callback - a function you must execute once your transition has executed + // options - the options used for this jnotify instance + }; + + // override the defaults + $.jnotify.setup = function (o){ + defaults = $.extend({}, defaults, o) ; + }; + + $.jnotify.play = function (f, d){ + if( playing && (f !== true ) || (queue.length == 0) ) return; + playing = true; + + // get first note + var note = queue.shift(); + queuedNote = note; + + // determine delay to use + var delay = (arguments.length >= 2) ? parseInt(d, 10) : note.options.delay; + + // run delay before removing message + queuedId = setTimeout(function(){ + // clear timeout id + queuedId = 0; + note.remove(function (){ + // makr that the queue is empty + if( queue.length == 0 ) playing = false; + // force playing the next item in queue + else if( !paused ) $.jnotify.play(true); + }); + }, delay); + }; + + $.jnotify.pause = function(){ + clearTimeout(queuedId); + // push the item back into the queue + if( queuedId ) queue.unshift(queuedNote); + // mark that we're playing (so it doesn't automatically start playing) + paused = playing = true; + } + + $.jnotify.resume = function(){ + // mark that we're no longer pause + paused = false; + + // resume playing + $.jnotify.play(true, 0); + } + + + function jNotify(message, options){ + // a reference to the jNotify object + var self = this, TO = typeof options; + + if( TO == "number" ){ + options = $.extend({}, defaults, {delay: options}); + } else if( TO == "boolean" ){ + options = $.extend({}, defaults, {sticky: true}) ; + } else if( TO == "string" ){ + options = $.extend({}, defaults, {type: options, delay: ((arguments.length > 2) && (typeof arguments[2] == "number")) ? arguments[2] : defaults.delay, sticky: ((arguments.length > 2) && (typeof arguments[2] == "boolean")) ? arguments[2] : defaults.sticky}) ; + } else { + options = $.extend({}, defaults, options); + } + + // store the options + this.options = options; + + // if the container doesn't exist, create it + if( !$jnotify ){ + // we want to use one single container, so always use the default container class + $jnotify = $('
').appendTo("body"); + if( $.isFunction(options.init) ) options.init.apply(self, [$jnotify]); + } + + // create the notification + function create(message){ + var html = '
' + + '
' + + (options.sticky && options.showClose ? ('' + options.closeLabel + '') : '') + + '
' + + '
' + message + '
' + + '
'; + + // increase the counter tracking the notification instances + count++; + + // create the note + var $note = $(html); + + if( options.sticky ){ + // add click handler to remove the sticky notification + $note.find("a." + options.classClose).bind("click.jnotify", function (){ + self.remove(); + }); + } + + // run callback + if( $.isFunction(options.create) ) options.create.apply(self, [$note]); + + // return the new note + return $note.appendTo($jnotify); + } + + // remove the notification + this.remove = function (callback){ + var $msg = $note.find("." + options.classMessage), $parent = $msg.parent(); + // remove message from counter + var index = count--; + + // run callback + if( $.isFunction(options.beforeRemove) ) options.beforeRemove.apply(self, [$msg]); + + // cleans up notification + function finished(){ + // remove the parent container + $parent.remove(); + + // if there's a callback, run it + if( $.isFunction(callback) ) callback.apply(self, [$msg]); + if( $.isFunction(options.remove) ) options.remove.apply(self, [$msg]); + } + + // check if a custom transition has been specified + if( $.isFunction(options.transition) ) options.transition.apply(self, [$parent, $msg, index, finished, options]); + else { + $msg.fadeTo(options.fadeSpeed, 0.01, function (){ + // if last item, just remove + if( index <= 1 ) finished(); + // slide the parent closed + else $parent.slideUp(options.slideSpeed, finished); + }); + + // if the last notification, fade out the container + if( count <= 0 ) $parent.fadeOut(options.fadeSpeed); + } + } + + // create the note + var $note = create(message); + + // if not a sticky, add to show queue + if( !options.sticky ){ + // add the message to the queue + queue.push(this); + // play queue + $.jnotify.play(); + } + + return this; + }; + +})(jQuery); diff --git a/js/jquery.jnotify.min.js b/js/jquery.jnotify.min.js new file mode 100644 index 0000000..0c70e3e --- /dev/null +++ b/js/jquery.jnotify.min.js @@ -0,0 +1,21 @@ +/* + * jNotify jQuery Plug-in + * + * Copyright 2010 Giva, Inc. (http://www.givainc.com/labs/) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * Date: 2010-09-30 + * Rev: 1.1.00 + */ +(function(B){B.jnotify=function(K,M,L){return new C(K,M,L)};B.jnotify.version="1.1.00";var J,D=[],E=0,H=false,I=false,G,F,A={type:"",delay:2000,sticky:false,closeLabel:"×",showClose:true,fadeSpeed:1000,slideSpeed:250,classContainer:"jnotify-container",classNotification:"jnotify-notification",classBackground:"jnotify-background",classClose:"jnotify-close",classMessage:"jnotify-message",init:null,create:null,beforeRemove:null,remove:null,transition:null};B.jnotify.setup=function(K){A=B.extend({},A,K)};B.jnotify.play=function(M,N){if(H&&(M!==true)||(D.length==0)){return }H=true;var L=D.shift();F=L;var K=(arguments.length>=2)?parseInt(N,10):L.options.delay;G=setTimeout(function(){G=0;L.remove(function(){if(D.length==0){H=false}else{if(!I){B.jnotify.play(true)}}})},K)};B.jnotify.pause=function(){clearTimeout(G);if(G){D.unshift(F)}I=H=true};B.jnotify.resume=function(){I=false;B.jnotify.play(true,0)};function C(P,N){var M=this,K=typeof N;if(K=="number"){N=B.extend({},A,{delay:N})}else{if(K=="boolean"){N=B.extend({},A,{sticky:true})}else{if(K=="string"){N=B.extend({},A,{type:N,delay:((arguments.length>2)&&(typeof arguments[2]=="number"))?arguments[2]:A.delay,sticky:((arguments.length>2)&&(typeof arguments[2]=="boolean"))?arguments[2]:A.sticky})}else{N=B.extend({},A,N)}}}this.options=N;if(!J){J=B('
').appendTo("body");if(B.isFunction(N.init)){N.init.apply(M,[J])}}function O(S){var R='
'+(N.sticky&&N.showClose?(''+N.closeLabel+""):"")+'
'+S+"
";E++;var Q=B(R);if(N.sticky){Q.find("a."+N.classClose).bind("click.jnotify",function(){M.remove()})}if(B.isFunction(N.create)){N.create.apply(M,[Q])}return Q.appendTo(J)}this.remove=function(U){var Q=L.find("."+N.classMessage),S=Q.parent();var R=E--;if(B.isFunction(N.beforeRemove)){N.beforeRemove.apply(M,[Q])}function T(){S.remove();if(B.isFunction(U)){U.apply(M,[Q])}if(B.isFunction(N.remove)){N.remove.apply(M,[Q])}}if(B.isFunction(N.transition)){N.transition.apply(M,[S,Q,R,T,N])}else{Q.fadeTo(N.fadeSpeed,0.01,function(){if(R<=1){T()}else{S.slideUp(N.slideSpeed,T)}});if(E<=0){S.fadeOut(N.fadeSpeed)}}};var L=O(P);if(!N.sticky){D.push(this);B.jnotify.play()}return this}})(jQuery); \ No newline at end of file