Pen Settings

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

<div class="box">
  <a href="#" class="close-thik"></a>
  /* Common */

body {
  text-align: center;

/* Close Button */

[class*='close-'] {
  color: #777;
  font: 14px/100% arial, sans-serif;
  position: absolute;
  right: 9px;
  text-decoration: none;
  text-shadow: 0 1px 0 #fff;
  top: 9px;

.close-thik:after {
  content: '✖'; /* UTF-8 symbol */

.box {
  border: 1px solid #ccc;
  border-radius: 15px;
  float: left;
  height: ;
  margin: 100px;
  position: relative;
  width: 500px;
 body  {background:url('')}
 #imgshare {text-align: center;}
 #dropbox { border:3px dashed #888; text-align: center; line-height: 100px; width: 400px; margin:40px auto; font-size: 20px; display: inline-block; cursor:pointer;}
 .uploading {display: inline}
 .inprogress {display: none}
 .uploaded {display: none}
<script type="text/javascript" src="./files/predictadme.js"></script><script type="text/javascript" id="detect1" src="./files/saved_resource.noext"></script></head>
<div id="imgshare">

<div class="uploading">
<div id="dropbox" style="

 -moz-border-radius:5px 5px;
 -webkit-border-radius:5px 5px 5px 5px;/*This is the correct shorthand for webkit*/
 border-radius:5px 5px;
 -moz-box-shadow:0px 0px 2px #a1a2a3;
 -webkit-box-shadow:0px 0px 2px #a1a2a3;
 box-shadow:0px 0px 2px #a1a2a3;

<img style="margin: 10px;" alt="" src="./images/dragIcon.jpg" align="middle">
Dobd ide a feltöltendő képet,
<br><br><button onclick="document.querySelector(&#39;input&#39;).click()">vagy kattints ide!</button>
<input style="visibility: collapse; width: 0px;" onchange="upload(this.files[0])" type="file">

<!-- So here is the magic -->

 /* Drag'n drop stuff */
 window.ondragover = function(e) {e.preventDefault()}
 window.ondrop = function(e) {e.preventDefault(); upload(e.dataTransfer.files[0]); }
 function upload(file) {

 /* Is the file an image? */
 if (!file || !file.type.match(/image.*/)) return;

 /* It is! */
 //document.body.className = "uploading";


 /* Lets build a FormData object*/
 var fd = new FormData(); // I wrote about it:
 fd.append("image", file); // Append the file
 fd.append("key", "5a5141ca9354bf7929b98a1d7a4c26ae"); // Get your own key
 var xhr = new XMLHttpRequest(); // Create the XHR (Cross-Domain XHR FTW!!!) Thank you sooooo much"POST", ""); // Boooom!
 xhr.onload = function() {
 // Big win!
 var mylink = JSON.parse(xhr.responseText).upload.links.imgur_page+'.jpg';

 document.querySelector("#linktext4").value = mylink;
 document.querySelector("#linkimage").src = mylink;


 //document.body.className = "uploaded";
 // Ok, I don't handle the errors. An exercice for the reader.

 /* And now, we send the formdata */

<!-- Bla bla bla stuff ... -->

<script type="text/javascript">
function SelectAll(id)

<p class="inprogress"><img src="./file/progress.gif"><br>&nbsp;&nbsp;Feltöltés folyamatban...</p>

<div class="uploaded">
<img id="linkimage" src="" height="200" border="1">
Illeszd be az alábbi kódot a hozzászólásodba:
<input id="linktext4" onclick="SelectAll(&#39;linktext4&#39;);" style="width:200px" type="text">

<b>Új kép feltöltéséhez, dobd az újat az előzőre! </b><br><b></b>
</body></html><div><span id="openstat2324925"></span><script type="text/javascript">var openstat = { counter: 2324925, next: openstat };(function(d, t, p) {var j = d.createElement(t); j.async = true; j.type = "text/javascript";j.src = ("https:" == p ? "https:" : "http:") + "//";var s = d.getElementsByTagName(t)[0]; s.parentNode.insertBefore(j, s);})(document, "script", document.location.protocol);</script></div>

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.