parent
f97835b156
commit
7e753b1ab7
64
create.php
64
create.php
@ -23,39 +23,6 @@
|
|||||||
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
|
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
|
||||||
<!--My Custom Stylesheet-->
|
<!--My Custom Stylesheet-->
|
||||||
<link rel="stylesheet" href="css/styles.css">
|
<link rel="stylesheet" href="css/styles.css">
|
||||||
|
|
||||||
|
|
||||||
<!-- Updatescript -->
|
|
||||||
<script>
|
|
||||||
function updateName() {
|
|
||||||
document.getElementById("cardname").innerHTML = $('#name').val();
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateHowToPlay() {
|
|
||||||
document.getElementById("thowtoplay").innerHTML = $('#howtoplay').val();
|
|
||||||
}
|
|
||||||
|
|
||||||
function createMenuItem(name) {
|
|
||||||
let li = document.createElement('li');
|
|
||||||
li.textContent = name;
|
|
||||||
return li;
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateGoodRoles() {
|
|
||||||
goodRoles = $('#goodRoles').val();
|
|
||||||
goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendChild(createMenuItem(element)); )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateDescription() {
|
|
||||||
document.getElementById("carddescription").innerHTML = $('#description').val();
|
|
||||||
}
|
|
||||||
|
|
||||||
function updateColor() {
|
|
||||||
document.getElementById("rolecard").className = "card " + $('#rolecolor').val() +" "+ $('#modifier').val() +"-"+ $('#strength').val() + " " + $('#tcolor').val();
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -256,6 +223,37 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Updatescript -->
|
||||||
|
<script>
|
||||||
|
function updateName() {
|
||||||
|
document.getElementById("cardname").innerHTML = $('#name').val();
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateHowToPlay() {
|
||||||
|
document.getElementById("thowtoplay").innerHTML = $('#howtoplay').val();
|
||||||
|
}
|
||||||
|
|
||||||
|
function createMenuItem(name) {
|
||||||
|
let li = document.createElement('li');
|
||||||
|
li.textContent = name;
|
||||||
|
return li;
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateGoodRoles() {
|
||||||
|
goodRoles = $('#goodRoles').val();
|
||||||
|
goodRoles.forEach(element => document.getElementById("tplaysbestwith").appendChild(createMenuItem(element)); )
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateDescription() {
|
||||||
|
document.getElementById("carddescription").innerHTML = $('#description').val();
|
||||||
|
}
|
||||||
|
|
||||||
|
function updateColor() {
|
||||||
|
document.getElementById("rolecard").className = "card " + $('#rolecolor').val() +" "+ $('#modifier').val() +"-"+ $('#strength').val() + " " + $('#tcolor').val();
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
<!-- Start Tab init -->
|
<!-- Start Tab init -->
|
||||||
|
Loading…
Reference in New Issue
Block a user