From fec7284cc201694c5dc63ae98bc09c00bf65d332 Mon Sep 17 00:00:00 2001 From: Jett Date: Sun, 11 Jan 2015 17:49:17 -0600 Subject: [PATCH] update --- app/routes.php | 3 ++- public/css/template.css | 23 ++++++++++++++++++++--- public/js/interaction.js | 6 ++++++ 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/app/routes.php b/app/routes.php index bdf006a..0e6aee8 100644 --- a/app/routes.php +++ b/app/routes.php @@ -4,4 +4,5 @@ Route::post('/', 'PasteController@create'); Route::get('/{slug}', 'PasteController@get'); Route::post('/{slug}', 'PasteController@delete'); -Route::get('/{slug}/mods', 'PasteController@mods'); \ No newline at end of file +Route::get('/{slug}/mods', 'PasteController@mods'); +Route::get('/{slug}/mods.json', 'PasteController@modsJson'); \ No newline at end of file diff --git a/public/css/template.css b/public/css/template.css index 3799d1c..d228ba2 100644 --- a/public/css/template.css +++ b/public/css/template.css @@ -119,8 +119,6 @@ button { outline: 0px; background-color: transparent; color:#fff; - float:right; - margin-right:2em; font-family: monospace; opacity: 0.5; } @@ -130,6 +128,11 @@ button:hover { cursor:pointer; } +#mainmenu button { + float:right; + margin-right:2em; +} + #overlay { position: fixed; top:0px; @@ -161,7 +164,7 @@ button:hover { display: none; } -#logo { +#mainmenu #logo { font-family: monospace; float:left; margin-left: 2em; @@ -172,6 +175,20 @@ button:hover { padding: 0px; } +#mainmenu #createdat { + font-family: monospace; + float:left; + margin-left: 2em; + border:0px; + padding: 0px; + opacity: 0; +} + +#mainmenu #createdat:hover { + opacity: 0.5; + cursor:default; +} + #modlisting { margin-top:3em; margin-left: 3em; diff --git a/public/js/interaction.js b/public/js/interaction.js index 6800ee0..53de6aa 100644 --- a/public/js/interaction.js +++ b/public/js/interaction.js @@ -60,6 +60,12 @@ $(document).ready(function() { }); }); + $("#expand-mods").click(function() { + $.getJSON(document.URL + ".json", function(results) { + console.log(results); + }); + }); + function update_caret(el) { var coordinates = getCaretCoordinates(el, el.selectionEnd);