mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
Add files via upload
This commit is contained in:
@@ -40,12 +40,37 @@
|
||||
height: auto;
|
||||
min-height: 1100px;
|
||||
margin: 0px auto;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.sheet-contenedorimagevj {
|
||||
position: absolute;
|
||||
top:0;
|
||||
right: 0;
|
||||
width: 860px;
|
||||
height: auto;
|
||||
min-height: 1100px;
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-position: center;
|
||||
background-position: center center;
|
||||
box-sizing: border-box;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.sheet-backgroundimage {
|
||||
position: absolute;
|
||||
top:0;
|
||||
right: 0;
|
||||
width: 860px;
|
||||
height: auto;
|
||||
min-height: 1100px;
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-position: center center;
|
||||
box-sizing: border-box;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
|
||||
.sheet-nsbu{
|
||||
position: relative;
|
||||
float:left;
|
||||
@@ -53,11 +78,21 @@
|
||||
max-width: 860px;
|
||||
height: 1100px;
|
||||
margin: 0px 0px 0px 0px;
|
||||
background-image: url("https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Never Stop Blowing Up/images/Never_Stop_Blowing_Up_Fondo_D_860px.jpg");
|
||||
|
||||
}
|
||||
.sheet-nsbu2{
|
||||
position: relative;
|
||||
float:left;
|
||||
width: 860px;
|
||||
max-width: 860px;
|
||||
height: 1100px;
|
||||
margin: 0px 0px 0px 0px;
|
||||
|
||||
background-repeat: no-repeat;
|
||||
background-size:cover;
|
||||
background-position: top left;
|
||||
}
|
||||
|
||||
.sheet-logo{
|
||||
float:left;
|
||||
position:relative;
|
||||
@@ -308,21 +343,43 @@ accent-color:Black;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.sheet-selectback {
|
||||
position: absolute;
|
||||
left: 390px;
|
||||
top: 165px;
|
||||
float: right;
|
||||
width: 100px;
|
||||
height: 30px;
|
||||
min-height: 30px;
|
||||
margin: 0px 0px 0px 0px;
|
||||
padding: 0px 10px 1px 10px;
|
||||
cursor: pointer;
|
||||
text-align: center;
|
||||
font-family: "Goldman", sans-serif;
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
font-size: 16px;
|
||||
color: #ffffff;
|
||||
border: 1px solid #000 !important;
|
||||
outline: 0;
|
||||
background-color: #000000 !important;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
/*=================== BUTTON ROLL NSBU CSS ===================*/
|
||||
|
||||
.sheet-VJnsbu {
|
||||
padding: 2px 17px 0px 17px !important;
|
||||
margin: 2px 3px 0px 30px!important;
|
||||
background: #ffffff;
|
||||
border: 1px solid #000000;
|
||||
background: transparent!important;
|
||||
border: 1px solid #000000!important;
|
||||
color: #000000;
|
||||
font-size: 16px!important;
|
||||
font-family: "Faster One", system-ui;
|
||||
}
|
||||
|
||||
.sheet-VJnsbu:hover {
|
||||
background: #000000;
|
||||
background: #000000!important;
|
||||
border: 1px solid #000000;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
@@ -3,10 +3,19 @@
|
||||
|
||||
|
||||
<div class="charsheet sheet-contenedorvj">
|
||||
|
||||
<div class="sheet-contenedorimagevj">
|
||||
<img class="sheet-backgroundimage" src="" name="attr_background_img" width="860" height="1054">
|
||||
</div><!-- end .sheet-contenedorimagevj -->
|
||||
|
||||
<div class="charsheet sheet-nsbu">
|
||||
|
||||
<select name="attr_background" class="sheet-selectback">
|
||||
<option value="1" selected>B/W</option>
|
||||
<option value="2">COLOR</option>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<div class="sheet-columna50">
|
||||
<div class="sheet-logo">
|
||||
<div class="sheet-espai-160"></div><!-- end .sheet-espai-40 -->
|
||||
@@ -231,6 +240,40 @@
|
||||
|
||||
<script type="text/worker">
|
||||
|
||||
on("change:background", function(eventInfo) {
|
||||
let imgUrl = "";
|
||||
|
||||
switch(eventInfo.newValue) {
|
||||
case "1":
|
||||
imgUrl = "https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Never Stop Blowing Up/images/Never_Stop_Blowing_Up_Fondo_D_860px.jpg";
|
||||
break;
|
||||
case "2":
|
||||
imgUrl = "https://raw.githubusercontent.com/Roll20/roll20-character-sheets/master/Never Stop Blowing Up/images/Never_Stop_Blowing_Up_Fondo_color_860px.jpg";
|
||||
break;
|
||||
}
|
||||
|
||||
setAttrs({
|
||||
background_img: imgUrl
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
on("sheet:opened", function() {
|
||||
|
||||
getAttrs(["background", "sheet_initialized"], function(values) {
|
||||
|
||||
if(values.sheet_initialized !== "true") {
|
||||
|
||||
setAttrs({
|
||||
background: "1",
|
||||
sheet_initialized: "true"
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
Reference in New Issue
Block a user