diff -ru a/css/style.css b/css/style.css --- a/css/style.css 2026-11-02 03:00:00.000000000 +0000 +++ b/css/style.css 2026-11-02 03:00:00.000000000 +0000 @@ -1,3 +1,6 @@ +@font-face { font-family: 'Exo 2'; font-style: normal; font-weight: 100 900; src: url("../fonts/Exo2.ttf") format("truetype"); } +@font-face { font-family: 'Satisfy'; font-style: normal; font-weight: 400; src: url("../fonts/Satisfy-Regular.ttf") format("truetype"); } + * { box-sizing: border-box; -webkit-box-sizing: border-box; diff -ru a/index.html b/index.html --- a/index.html 2026-11-02 03:00:00.000000000 +0000 +++ b/index.html 2026-11-02 03:00:00.000000000 +0000 @@ -5,19 +5,13 @@ + - - - - - - - @@ -28,12 +22,6 @@ - - Share - - - -

@@ -120,10 +108,7 @@

- Made by @flukeout — come say hi! -

-

- Have feedback or questions? Please file an issue on the Github repo. + Made by Luke Pacholski (flukeout).

@@ -169,19 +154,6 @@ - diff -ru a/js/restaurant.js b/js/restaurant.js --- a/js/restaurant.js 2026-11-02 03:00:00.000000000 +0000 +++ b/js/restaurant.js 2026-11-02 03:00:00.000000000 +0000 @@ -29,23 +29,6 @@ $(document).ready(function(){ - $(".share-menu").on("click","a",function(){ - - var type = $(this).attr("type"); - - if(type == "twitter"){ - var url = "https://twitter.com/intent/tweet?text=Learning%20CSS?%20Try%20CSS%20Diner,%20the%20fun%20way%20to%20practice%20selectors%20%E2%86%92&hashtags=css,cssdiner,webdev&url=http%3A%2F%2Fcssdiner.com%2F&via=flukeout"; - } else if (type == "facebook") { - var url = "https://www.facebook.com/sharer.php?src=sp&u=http%3A%2F%2Fcssdiner.com"; - } else if (type == "email") { - var url = "mailto:?subject=Check+out+CSS+Diner&body=It's+a+fun+game+to+learn+%26+practice+CSS+selectors.%0D%0A%0D%0AYou+can+try+it+at+http://cssdiner.com"; - } - - PopupCenter(url, "title", 600, 450); - sendEvent("share", type, ""); - return false; - }); - $(window).on("keydown",function(e){ if(e.keyCode == 27) { closeMenu(); @@ -497,19 +480,8 @@ } -// Sends event to Google Analytics -// Doesn't send events if we're on localhost, as the ga variable is set to false +// FredyGames: the Google Analytics events were removed; the calls stay and do nothing. function sendEvent(category, action, label){ - if(!ga){ - return; - } - - ga('send', { - hitType: "event", - eventCategory: category, // guess or progress - eventAction: action, // action (correct vs not..) - eventLabel: label // level number - }); } function winGame(){ @@ -647,24 +619,3 @@ },200); } - -// Popup positioning code from... -// http://stackoverflow.com/questions/4068373/center-a-popup-window-on-screen - -function PopupCenter(url, title, w, h) { - // Fixes dual-screen position Most browsers Firefox - var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left; - var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top; - - var width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width; - var height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height; - - var left = ((width / 2) - (w / 2)) + dualScreenLeft; - var top = ((height / 2) - (h / 2)) + dualScreenTop; - var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left); - - // Puts focus on the newWindow - if (window.focus) { - newWindow.focus(); - } -}