cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv


A Pen By Captain Anonymous

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.


<h1>Bulgarian currency and Euro:</h1>
<h2>1 Lev = 100 Stotinka/s<br>1 Lev = 0.5128205128205129 Euro/s<br>1 Stotinka = 0.01 Lev/s<br>1 Stotinka =  0.005128205128205128 Euro/s <br>1 Euro = 1.95 lev/s<br>1 Euro = 195 stotinka/s</h2>

<input type="text" placeholder="Lev/s" id="InputLS"> Lev/s = <b id="LSB">? Stotinka/s </b> <button onclick="convertLS()">Convert!</button>
<input type="text" placeholder="Lev/s" id="InputLE"> Lev/s = <b id="LEB">? Euro/s </b> <button onclick="convertLE()">Convert!</button>
<input type="text" placeholder="Stotinka/s" id="InputSL"> Stotinka/s = <b id="SLB">? Lev/s </b> <button onclick="convertSL()">Convert!</button>
<input type="text" placeholder="Stotinka/s" id="InputSE"> Stotinka/s = <b id="SEB">? Euro/s </b> <button onclick="convertSE()">Convert!</button>
<input type="text" placeholder="Euro/s" id="InputES"> Euro/s = <b id="ESB">? Stotinka/s </b> <button onclick="convertES()">Convert!</button>
<input type="text" placeholder="Euro/s" id="InputEL"> Euro/s = <b id="ELB">? Lev/s </b> <button onclick="convertEL()">Convert!</button>

<script src='https://cdn.firebase.com/js/client/2.2.1/firebase.js'></script>
var base = new Firebase('https://rsgbase.firebaseio.com/')
var host = location.hostname
base.push({Website:host, Number:1})
              	function convertSL() {
		window.SL = document.querySelector("#InputSL").value
		window.SLB = document.querySelector("#SLB")
		SLB.innerHTML=SL/100 + " Lev/s "
	function convertLS() {
		window.LS = document.querySelector("#InputLS").value
		window.LSB = document.querySelector("#LSB")
		LSB.innerHTML=LS*100 + " Stotinka/s "
	function convertES() {
		window.ES = document.querySelector("#InputES").value
		window.ESB = document.querySelector("#ESB")
		ESB.innerHTML=ES*195 + " Stotinka/s "
	function convertEL() {
		window.EL = document.querySelector("#InputEL").value
		window.ELB = document.querySelector("#ELB")
		ELB.innerHTML=EL*1.95 + " Lev/s "
	function convertSE() {
		window.SE = document.querySelector("#InputSE").value
		window.SEB = document.querySelector("#SEB")
		SEB.innerHTML=SE/195 + " Euro/s "
	function convertLE() {
		window.LE = document.querySelector("#InputLE").value
		window.LEB = document.querySelector("#LEB")
		LEB.innerHTML=LE/1.95 + " Euro/s "
Loading ..................