Add containerization and make this bad boy work on Windows and MacOS
This commit is contained in:
@@ -358,26 +358,6 @@ $for s in loaded:
|
||||
|
||||
$$("#chooseDeck").html("Choose from " + ncards + " cards");
|
||||
|
||||
$$("#mod_create").click(function() {
|
||||
var myObject = new Object();
|
||||
myObject.name = $$("#mod_name").val();
|
||||
myObject.url = $$("#mod_url").val();
|
||||
|
||||
jQuery.ajax({
|
||||
type: "POST",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(myObject),
|
||||
success: function(data) {
|
||||
if(data == 'fail') {
|
||||
alert("Failed to created mod");
|
||||
} else {
|
||||
window.location.href = "/mod";
|
||||
}
|
||||
},
|
||||
});
|
||||
return false;
|
||||
});
|
||||
|
||||
$$("#signin").click(function() {
|
||||
|
||||
var myObject = new Object();
|
||||
|
||||
@@ -1,30 +1,6 @@
|
||||
$def with (modes)
|
||||
|
||||
<div style="overflow:hidden;width:100%;background-color: rgba(0, 0, 0, 0.7);border-radius:25px;padding:10px;">
|
||||
<div style="overflow:hidden;width:100%">
|
||||
<form class="form" method="post" style="float:left;">
|
||||
<div style="overflow:hidden;">
|
||||
<div style="float:left;width:200px;">Mod Name:</div>
|
||||
<div style="float:left;width:200px;"><input id='mod_name' type="text" style="background-color: rgba(0, 128, 0, 0.7);border:0px;color:white;width:200px;"/></div>
|
||||
</div>
|
||||
|
||||
<div style="overflow:hidden;">
|
||||
<div style="float:left;width:200px;">Mod URL:</div>
|
||||
<div style="float:left;width:200px;"><input id='mod_url' type="text" style="background-color: rgba(0, 128, 0, 0.7);border:0px;color:white;width:200px;"/></div>
|
||||
</div>
|
||||
|
||||
<div style="overflow:hidden;">
|
||||
|
||||
<div style="float:left;width:200px;height:10px;"></div>
|
||||
<div style="float:left;width:200px;"><input id='mod_create' type="submit" value="Mod Create" style="background-color: rgba(0, 128, 0, 0.7);border:0px;color:white;width:200px;cursor:pointer;"/>
|
||||
</div>
|
||||
</form>
|
||||
$for m in modes:
|
||||
<div style="width:100%;font-size:50pt;text-align;background-color: rgba(0, 0, 0, 0.7);text-align:center;">
|
||||
<a href="/mod/create">$m</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style="overflow:hidden;width:100%;background-color: rgba(0, 0, 0, 0.7);border-radius:25px;padding:10px;">
|
||||
$for m in modes:
|
||||
<div style="overflow:hidden;width:100%;text-align:center;">
|
||||
<a href="/mod/edit/$(m['url'])">$(m['name'])</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user