Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
whackashoe committed Jan 11, 2015
1 parent c73b6ed commit fec7284
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
Route::post('/', 'PasteController@create');
Route::get('/{slug}', 'PasteController@get');
Route::post('/{slug}', 'PasteController@delete');
Route::get('/{slug}/mods', 'PasteController@mods');
Route::get('/{slug}/mods', 'PasteController@mods');
Route::get('/{slug}/mods.json', 'PasteController@modsJson');
23 changes: 20 additions & 3 deletions public/css/template.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,6 @@ button {
outline: 0px;
background-color: transparent;
color:#fff;
float:right;
margin-right:2em;
font-family: monospace;
opacity: 0.5;
}
Expand All @@ -130,6 +128,11 @@ button:hover {
cursor:pointer;
}

#mainmenu button {
float:right;
margin-right:2em;
}

#overlay {
position: fixed;
top:0px;
Expand Down Expand Up @@ -161,7 +164,7 @@ button:hover {
display: none;
}

#logo {
#mainmenu #logo {
font-family: monospace;
float:left;
margin-left: 2em;
Expand All @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions public/js/interaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fec7284

Please sign in to comment.