Sjabloon:Domein form: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
Regel 18: Regel 18:
 
   --><div><b>Intro text</b></div><!--  
 
   --><div><b>Intro text</b></div><!--  
 
--><wsfield type="textarea" name="Intro" class="form-control" /><!--  
 
--><wsfield type="textarea" name="Intro" class="form-control" /><!--  
   -->{{#vardefine:@color-value|{{#expr:{{#if:{{#urlget:domein}}|{{#ask:[[Class::Domein]][[Domein::{{#urldecode:{{#urlget:domein}} }}]]|?Color|link=none}} |359}} / 360 * 100  }} }}<!--  
+
   -->{{#vardefine:@color-value|{{#expr:{{#ask:[[Class::Domein]][[Domein::{{SERVERNAME}}]]|?Color|link=none}} / 360 * 100  }} }}<!--  
 
--><b class="red">KLEUR</b><div class="fake-slider-group">{{#tag:html|<div id="fake-slider" style="background:linear-gradient(90deg, var(--main-color) 0%, var(--main-color) calc((var(--color-input)/ 360 * 100)*1%), white calc((var(--color-input)/ 360 * 100)*1%), white 100%);"></div>}}<wsfield type="range" name="Color" class="form-control" id="change-color" value="{{#var:@color-value}}" /></div><!--  
 
--><b class="red">KLEUR</b><div class="fake-slider-group">{{#tag:html|<div id="fake-slider" style="background:linear-gradient(90deg, var(--main-color) 0%, var(--main-color) calc((var(--color-input)/ 360 * 100)*1%), white calc((var(--color-input)/ 360 * 100)*1%), white 100%);"></div>}}<wsfield type="range" name="Color" class="form-control" id="change-color" value="{{#var:@color-value}}" /></div><!--  
 
  --><!--  
 
  --><!--  
Regel 31: Regel 31:
 
--><div id="links-input-wrapper"><wsfield type="text" name="Links[]" class="form-control mb-4" /></div><wsfield type="button" class="btn pull-right"  onclick="addLink()" >{{fa|plus}}</wsfield><!--  
 
--><div id="links-input-wrapper"><wsfield type="text" name="Links[]" class="form-control mb-4" /></div><wsfield type="button" class="btn pull-right"  onclick="addLink()" >{{fa|plus}}</wsfield><!--  
 
  --></div><!--  
 
  --></div><!--  
--></div><div class="main-wrapper mt-4"><wsfield type="button" class="btn pull-right" onclick="postBericht(this, 'Domein')"  >Opslaan</wsfield></div></wsform><!--  
+
--></div><div class="main-wrapper mt-4"><wsfield type="button" class="btn pull-right" onclick="uploadFiles('{{#replace:{{SERVERNAME}}|.|-}}-logo.png')"  >Opslaan</wsfield><wsfield type="button" class="btn pull-right d-none" onclick="postBericht(this, 'Domein')"  id="real-submit">Opslaan</wsfield></div></wsform><!--  
 
  -->{{#tag:html|<script>
 
  -->{{#tag:html|<script>
 
document.getElementById('change-color').addEventListener('input', function(e){
 
document.getElementById('change-color').addEventListener('input', function(e){

Versie van 18 aug 2020 20:30

Domeinen
{{#arraymap:Voedbal-denhout.nl, Stichting-htb.nl, scoutingdenhout.nl|,|@@@|
@@@
|}}