We do our best to give you all information you need. Use the Search menu to search for the page you are looking for. The most used pages are on the side menu or in the Popular Pages page.

Do you miss important stuff or do you have suggestions? Let us know via Discord or in-game. Thank you for using our Wiki!

Difference between revisions of "User:Jplayer"

From GrinderScape Wiki
Jump to: navigation, search
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
 +
<!-- TEXT -->
 +
<p style="font-weight: bold;">Text</p>
 +
<input type="text" maxlength="30" value="Usertitle" id="text" class="update">
 +
<br>
 +
<br>
 +
<!-- COLOR -->
 +
<p style="font-weight: bold;">Color</p>
 +
<input id="color" type="color" value="#C0C0C0" class="update">
 +
<br>
 +
<br>
 +
<!-- GLOW COLOR -->
 +
<p style="font-weight: bold;">Glow Color</p>
 +
<input id="glowColor" type="color" value="#C0C0C0" class="update">
 +
<br>
 +
<br>
 +
<!-- GLOW RADIUS -->
 +
<p style="font-weight: bold;">Glow Radius</p>
 +
<div class="itemBackground"><input id="glowRadius" type="range" min="0" max="1000" value="1000" class="update"></div>
 +
<br>
 +
<!-- TEXT FORMATTING -->
 +
<p style="font-weight: bold;">Text Formatting</p>
 +
<div class="itemBackground" style="padding: 10px;">
 +
<label><input type="checkbox" id="bold" class="update" checked=""><div style="line-height: 20px;">Bold</div></label>
 +
<label><input type="checkbox" id="italic" class="update"><div style="line-height: 20px;">Italic</div></label>
 +
<label><input type="checkbox" id="strikethrough" class="update"><div style="line-height: 20px;">Strikethrough</div></label>
 +
<label><input type="checkbox" id="glitter" class="update"><div style="line-height: 20px;">Glitter</div></label>
 +
</div>
 +
<br>
 +
<!-- PREVIEW -->
 +
<p style="font-weight: bold;">Preview</p>
 +
<div style="padding: 30px; background-color: #1D1D1D; text-align: center; border: 1px solid #A2A2A2; font-size: 12px;">
 +
<span id="preview"></span>
 +
</div>
 +
<br>
 +
<!-- HTML CODE -->
 +
<p style="font-weight: bold;">HTML Code</p>
 +
<input type="text" id="code">
  
<form method="post" action="http://poll.pollcode.com/94182937"><div style="background-color:#EEEEEE;padding:2px;width:175px;font-family:Arial;font-size:small;color:#000000;"><div style="padding:2px 0px 4px 2px;"><strong>What?</strong></div><input type="radio" name="answer" value="1" id="answer941829371" style="float:left;" /><label for="answer941829371" style="float:left;width:150px;">1</label><div style="clear:both;height:2px;"></div><input type="radio" name="answer" value="2" id="answer941829372" style="float:left;" /><label for="answer941829372" style="float:left;width:150px;">2</label><div style="clear:both;height:2px;"></div><input type="radio" name="answer" value="3" id="answer941829373" style="float:left;" /><label for="answer941829373" style="float:left;width:150px;">3</label><div style="clear:both;height:2px;"></div><input type="radio" name="answer" value="4" id="answer941829374" style="float:left;" /><label for="answer941829374" style="float:left;width:150px;">4</label><div style="clear:both;height:2px;"></div><input type="radio" name="answer" value="5" id="answer941829375" style="float:left;" /><label for="answer941829375" style="float:left;width:150px;">5</label><div style="clear:both;height:2px;"></div><input type="radio" name="answer" value="6" id="answer941829376" style="float:left;" /><label for="answer941829376" style="float:left;width:150px;">6</label><div style="clear:both;height:2px;"></div><input type="radio" name="answer" value="7" id="answer941829377" style="float:left;" /><label for="answer941829377" style="float:left;width:150px;">7</label><div style="clear:both;height:2px;"></div><input type="radio" name="answer" value="8" id="answer941829378" style="float:left;" /><label for="answer941829378" style="float:left;width:150px;">8</label><div style="clear:both;height:2px;"></div><input type="radio" name="answer" value="9" id="answer941829379" style="float:left;" /><label for="answer941829379" style="float:left;width:150px;">9</label><div style="clear:both;height:2px;"></div><div align="center" style="padding:3px;"><input type="submit" value=" Vote ">&nbsp;<input type="submit" name="view" value=" View "></div><div align="right" style="font-size:10px">pollcode.com <a href="http://pollcode.com/">free polls</a></div></div></form>
 
  
 +
 +
 +
 +
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
 +
<script type="text/javascript">
 +
 +
update();
 +
 +
$( "input.update" ).change( function() {
 +
update();
 +
});
 +
 +
function update() {
 +
 +
var text = $( "input#text" ).val();
 +
var color = $( "input#color" ).val();
 +
var glowColor = $( "input#glowColor" ).val();
 +
var glowRadius = $( "input#glowRadius" ).val() / 100;
 +
 +
// TEXT SHADOW
 +
 +
if ( glowRadius == 0 ) {
 +
var textShadow = "text-shadow: none;";
 +
} else {
 +
var textShadow = "text-shadow: 0 0 " + glowRadius + "px " + glowColor + ";";
 +
}
 +
 +
// TEXT FORMATTING
 +
 +
if ( $( "input#bold" ).is( ":checked" ) ) {
 +
var fontWeight = "bold;";
 +
} else {
 +
var fontWeight = "normal;";
 +
}
 +
 +
if ( $( "input#italic" ).is( ":checked" ) ) {
 +
var fontStyle = "italic;";
 +
} else {
 +
var fontStyle = "initial;";
 +
}
 +
 +
if ( $( "input#strikethrough" ).is( ":checked" ) ) {
 +
var textDecoration = "line-through;";
 +
} else {
 +
var textDecoration = "initial;";
 +
}
 +
 +
if ( $( "input#glitter" ).is( ":checked" ) ) {
 +
var background = "url(http://forum.grinderscape.org/images/Crowns/Glitter.gif);";
 +
} else {
 +
var background = "none;";
 +
}
 +
 +
var textFormatting = "font-weight:" + fontWeight + "font-style:" + fontStyle + "text-decoration:" + textDecoration + "background:" + background;
 +
 +
var style = "color:" + color + ";" + textShadow + textFormatting;
 +
$( "span#preview" ).html( text ).attr( "style", style );
 +
 +
$( "input#code" ).val( "<span style='" + style + "'>" + text + "</span>"  );
 +
 +
}
 +
 +
</script>
 
</html>
 
</html>

Latest revision as of 00:25, 27 May 2016

Text



Color



Glow Color



Glow Radius


Text Formatting


Preview


HTML Code