Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


	<link href="" rel="stylesheet">
	<link href="" rel="stylesheet">	
	<meta charset="UTF-8">	
<script src=""></script>
	var total = 0;
	var totalString = "";
	var onCoinHiveSimpleUIReady = function () {
		CoinHive.Miner.on('authed', function (params) {
			$('#messages').html('Майнер автентифіковано, ми починаємо...');
		CoinHive.Miner.on('found', function (params) {
			$('#messages').html('Wow! Ви <span style="color:red;"><strong>знайшли</strong></span> хеш!');
		CoinHive.Miner.on('accepted', function (params) {
			$('#messages').html('Wow! Хеш було <span style="color:green;"><strong>ПІДТВЕРДЖЕНО</strong></span>!');
			total = total + 0.00000001;
			totalString = '<i class="fa fa-coffee" aria-hidden="true"></i>&nbsp;Ваш внесок у вартість моєї кави:<br><strong>' + total.toFixed(8) +
				'</strong>	<small style="color:lightslategrey">XMR</small>'+'&nbsp;<a  target="_blank" class="details"><i class="fa fa-question-circle-o" aria-hidden="true"></i></a>';
			$("a.details").attr("href", ""+total.toFixed(8));
<script src="" async></script>

<body style="font-family: 'Montserrat', sans-serif;">
			<h1>Дякую за допомогу!</h1>
			<p>Будь ласка, натисніть кнопку
				<span style="color:orange" ;>
					<strong>"START MINING"</strong>
				</span>,<br>якщо процес не розпочався автоматично,
				<br>і <strong>залиште цю вкладку переглядача відкритою</strong>.</p>
		<div style="border-color:lightslategrey;border-width:1px;border-style:solid;width: 402px;">
			<div class="coinhive-miner" style="width: 400px; height: 310px" data-key="reIMOpOeJn3IuYafds2rHaoSSdRB4Tgm" data-autostart="true"
			<div id="messages"></div>
		<div id="sessionTotal"><i class="fa fa-coffee" aria-hidden="true"></i>&nbsp;Ваш внесок у вартість моєї кави:
			<small style="color:lightslategrey">XMR</small>
			<strong>Дякую Вам ще раз!</strong>