Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

Auto Save

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.

HTML

              
                <body>
<div>
<div class="joacLogo"><img onclick="eastereggOpgg()" src="src/headlineJoac.png"></div>
</div>

<div class="grid-container">
  <div class="grid-item"><img onclick="change('aatrox')" src="pics/aatrox.png"></div>
  <div class="grid-item"><img onclick="change('ahri')" src="pics/ahri.png"></div>
  <div class="grid-item"><img onclick="change('akali')" src="pics/akali.png"></div>  
  <div class="grid-item"><img onclick="change('akshan')" src="pics/akshan.png"></div>
  <div class="grid-item"><img onclick="change('alistar')" src="pics/alistar.png"></div>
  <div class="grid-item"><img onclick="change('amumu')" src="pics/amumu.png"></div>  
  <div class="grid-item"><img onclick="change('anivia')" src="pics/anivia.png"></div>
  <div class="grid-item"><img onclick="change('annie')" src="pics/annie.png"></div>
  <div class="grid-item"><img onclick="change('aphelios')" src="pics/aphelios.png"></div>
  <div class="grid-item"><img onclick="change('ashe')" src="pics/ashe.png"></div>
  <div class="grid-item"><img onclick="change('aurelion_sol')" src="pics/aurelion_sol.png"></div>
  <div class="grid-item"><img onclick="change('azir')" src="pics/azir.png"></div>
  <div class="grid-item"><img onclick="change('bard')" src="pics/bard.png"></div>
  <div class="grid-item"><img onclick="change('belveth')" src="pics/belveth.png"></div>
  <div class="grid-item"><img onclick="change('blitzcrank')" src="pics/blitzcrank.png"></div>
  <div class="grid-item"><img onclick="change('brand')" src="pics/brand.png"></div>
  <div class="grid-item"><img onclick="change('braum')" src="pics/braum.png"></div>
  <div class="grid-item"><img onclick="change('caitlyn')" src="pics/caitlyn.png"></div>
  <div class="grid-item"><img onclick="change('camille')" src="pics/camille.png"></div>
  <div class="grid-item"><img onclick="change('cassiopeia')" src="pics/cassiopeia.png"></div>
  <div class="grid-item"><img onclick="change('chogath')" src="pics/chogath.png"></div>
  <div class="grid-item"><img onclick="change('corki')" src="pics/corki.png"></div>
  <div class="grid-item"><img onclick="change('darius')" src="pics/darius.png"></div>
  <div class="grid-item"><img onclick="change('diana')" src="pics/diana.png"></div>
  <div class="grid-item"><img onclick="change('dr_mundo')" src="pics/dr_mundo.png"></div>
  <div class="grid-item"><img onclick="change('draven')" src="pics/draven.png"></div>
  <div class="grid-item"><img onclick="change('ekko')" src="pics/ekko.png"></div>
  <div class="grid-item"><img onclick="change('ellise')" src="pics/ellise.png"></div>
  <div class="grid-item"><img onclick="change('evelynn')" src="pics/evelynn.png"></div>
  <div class="grid-item"><img onclick="change('ezreal')" src="pics/ezreal.png"></div>
  <div class="grid-item"><img onclick="change('fiddlesticks')" src="pics/fiddlesticks.png"></div>
  <div class="grid-item"><img onclick="change('fiora')" src="pics/fiora.png"></div>  
  <div class="grid-item"><img onclick="change('fizz')" src="pics/fizz.png"></div>
  <div class="grid-item"><img onclick="change('galio')" src="pics/galio.png"></div>
  <div class="grid-item"><img onclick="change('gankplank')" src="pics/gankplank.png"></div>
  <div class="grid-item"><img onclick="change('garen')" src="pics/garen.png"></div>
  <div class="grid-item"><img onclick="change('gnar')" src="pics/gnar.png"></div>
  <div class="grid-item"><img onclick="change('gragas')" src="pics/gragas.png"></div>
  <div class="grid-item"><img onclick="change('gragas')" src="pics/graves.png"></div>
  <div class="grid-item"><img onclick="change('gwen')" src="pics/gwen.png"></div>
  <div class="grid-item"><img onclick="change('hecarim')" src="pics/hecarim.png"></div>
  <div class="grid-item"><img onclick="change('heimerdinger')" src="pics/heimerdinger.png"></div>
  <div class="grid-item"><img onclick="change('illaoi')" src="pics/illaoi.png"></div>
  <div class="grid-item"><img onclick="change('irelia')" src="pics/irelia.png"></div>
  <div class="grid-item"><img onclick="change('ivern')" src="pics/ivern.png"></div>
  <div class="grid-item"><img onclick="change('janna')" src="pics/janna.png"></div>
  <div class="grid-item"><img onclick="change('jarvan')" src="pics/jarvan.png"></div>
  <div class="grid-item"><img onclick="change('jax')" src="pics/jax.png"></div>
  <div class="grid-item"><img onclick="change('jayce')" src="pics/jayce.png"></div>
  <div class="grid-item"><img onclick="change('jhin')" src="pics/jhin.png"></div>
  <div class="grid-item"><img onclick="change('jinx')" src="pics/jinx.png"></div>
  <div class="grid-item"><img onclick="change('kaisa')" src="pics/kaisa.png"></div>
  <div class="grid-item"><img onclick="change('kalista')" src="pics/kalista.png"></div>
  <div class="grid-item"><img onclick="change('karma')" src="pics/karma.png"></div>
  <div class="grid-item"><img onclick="change('karthus')" src="pics/karthus.png"></div>
  <div class="grid-item"><img onclick="change('kassadin')" src="pics/kassadin.png"></div>
  <div class="grid-item"><img onclick="change('katarina')" src="pics/katarina.png"></div>
  <div class="grid-item"><img onclick="change('kayle')" src="pics/kayle.png"></div>
  <div class="grid-item"><img onclick="change('kayn')" src="pics/kayn.png"></div>
  <div class="grid-item"><img onclick="change('kennen')" src="pics/kennen.png"></div>
  <div class="grid-item"><img onclick="change('khazix')" src="pics/khazix.png"></div>
  <div class="grid-item"><img onclick="change('kindred')" src="pics/kindred.png"></div>
  <div class="grid-item"><img onclick="change('kled')" src="pics/kled.png"></div>
  <div class="grid-item"><img onclick="change('kogmaw')" src="pics/kogmaw.png"></div>
  <div class="grid-item"><img onclick="change('leblanc')" src="pics/leblanc.png"></div>
  <div class="grid-item"><img onclick="change('lee_sin')" src="pics/lee_sin.png"></div>
  <div class="grid-item"><img onclick="change('leona')" src="pics/leona.png"></div>
  <div class="grid-item"><img onclick="change('lillia')" src="pics/lillia.png"></div>
  <div class="grid-item"><img onclick="change('lissandra')" src="pics/lissandra.png"></div>
  <div class="grid-item"><img onclick="change('lucian')" src="pics/lucian.png"></div>
  <div class="grid-item"><img onclick="change('lulu')" src="pics/lulu.png"></div>
  <div class="grid-item"><img onclick="change('lux')" src="pics/lux.png"></div>
  <div class="grid-item"><img onclick="change('malphite')" src="pics/malphite.png"></div>
  <div class="grid-item"><img onclick="change('malzahar')" src="pics/malzahar.png"></div>
  <div class="grid-item"><img onclick="change('maokai')" src="pics/maokai.png"></div>
  <div class="grid-item"><img onclick="change('miss_fortune')" src="pics/miss_fortune.png"></div>
  <div class="grid-item"><img onclick="change('mordekaiser')" src="pics/mordekaiser.png"></div>
  <div class="grid-item"><img onclick="change('morgana')" src="pics/morgana.png"></div>
  <div class="grid-item"><img onclick="change('nami')" src="pics/nami.png"></div>
  <div class="grid-item"><img onclick="change('nasus')" src="pics/nasus.png"></div>
  <div class="grid-item"><img onclick="change('nautilus')" src="pics/nautilus.png"></div>
  <div class="grid-item"><img onclick="change('neeko')" src="pics/neeko.png"></div>
  <div class="grid-item"><img onclick="change('nidalee')" src="pics/nidalee.png"></div>
  <div class="grid-item"><img onclick="change('nilah')" src="pics/nilah.png"></div>
  <div class="grid-item"><img onclick="change('nocturne')" src="pics/nocturne.png"></div>
  <div class="grid-item"><img onclick="change('nunu_and_willump')" src="pics/nunu_and_willump.png"></div>
  <div class="grid-item"><img onclick="change('olaf')" src="pics/olaf.png"></div>
  <div class="grid-item"><img onclick="change('orianna')" src="pics/orianna.png"></div>
  <div class="grid-item"><img onclick="change('ornn')" src="pics/ornn.png"></div>
  <div class="grid-item"><img onclick="change('pantheon')" src="pics/pantheon.png"></div>
  <div class="grid-item"><img onclick="change('poppy')" src="pics/poppy.png"></div>
  <div class="grid-item"><img onclick="change('pyke')" src="pics/pyke.png"></div>
  <div class="grid-item"><img onclick="change('qiyana')" src="pics/qiyana.png"></div>
  <div class="grid-item"><img onclick="change('quinn')" src="pics/quinn.png"></div>
  <div class="grid-item"><img onclick="change('rakan')" src="pics/rakan.png"></div>
  <div class="grid-item"><img onclick="change('rammus')" src="pics/rammus.png"></div>
  <div class="grid-item"><img onclick="change('reksai')" src="pics/reksai.png"></div>
  <div class="grid-item"><img onclick="change('rell')" src="pics/rell.png"></div>
  <div class="grid-item"><img onclick="change('renata_glasc')" src="pics/renata_glasc.png"></div>
  <div class="grid-item"><img onclick="change('renekton')" src="pics/renekton.png"></div>
  <div class="grid-item"><img onclick="change('rengar')" src="pics/rengar.png"></div>
  <div class="grid-item"><img onclick="change('riven')" src="pics/riven.png"></div>
  <div class="grid-item"><img onclick="change('rumble')" src="pics/rumble.png"></div>
  <div class="grid-item"><img onclick="change('ryze')" src="pics/ryze.png"></div>
  <div class="grid-item"><img onclick="change('samira')" src="pics/samira.png"></div>
  <div class="grid-item"><img onclick="change('sejuani')" src="pics/sejuani.png"></div>
  <div class="grid-item"><img onclick="change('senna')" src="pics/senna.png"></div>
  <div class="grid-item"><img onclick="change('seraphine')" src="pics/seraphine.png"></div>
  <div class="grid-item"><img onclick="change('sett')" src="pics/sett.png"></div>
  <div class="grid-item"><img onclick="change('shaco')" src="pics/shaco.png"></div>
  <div class="grid-item"><img onclick="change('shen')" src="pics/shen.png"></div>
  <div class="grid-item"><img onclick="change('shyvana')" src="pics/shyvana.png"></div>
  <div class="grid-item"><img onclick="change('singed')" src="pics/singed.png"></div>
  <div class="grid-item"><img onclick="change('sion')" src="pics/sion.png"></div>
  <div class="grid-item"><img onclick="change('sivir')" src="pics/sivir.png"></div>
  <div class="grid-item"><img onclick="change('skarner')" src="pics/skarner.png"></div>
  <div class="grid-item"><img onclick="change('sona')" src="pics/sona.png"></div>
  <div class="grid-item"><img onclick="change('soraka')" src="pics/soraka.png"></div>
  <div class="grid-item"><img onclick="change('swain')" src="pics/swain.png"></div>
  <div class="grid-item"><img onclick="change('sylas')" src="pics/sylas.png"></div>
  <div class="grid-item"><img onclick="change('syndra')" src="pics/syndra.png"></div>
  <div class="grid-item"><img onclick="change('taliyah')" src="pics/taliyah.png"></div>
  <div class="grid-item"><img onclick="change('talon')" src="pics/talon.png"></div>
  <div class="grid-item"><img onclick="change('taric')" src="pics/taric.png"></div>
  <div class="grid-item"><img onclick="change('teemo')" src="pics/teemo.png"></div>
  <div class="grid-item"><img onclick="change('tham_kench')" src="pics/tham_kench.png"></div>
  <div class="grid-item"><img onclick="change('thresh')" src="pics/thresh.png"></div>
  <div class="grid-item"><img onclick="change('tristana')" src="pics/tristana.png"></div>
  <div class="grid-item"><img onclick="change('trundle')" src="pics/trundle.png"></div>
  <div class="grid-item"><img onclick="change('tryndamere')" src="pics/tryndamere.png"></div>
  <div class="grid-item"><img onclick="change('twisted_fate')" src="pics/twisted_fate.png"></div>
  <div class="grid-item"><img onclick="change('twitch')" src="pics/twitch.png"></div>
  <div class="grid-item"><img onclick="change('udyr')" src="pics/udyr.png"></div>
  <div class="grid-item"><img onclick="change('urgot')" src="pics/urgot.png"></div>
  <div class="grid-item"><img onclick="change('varus')" src="pics/varus.png"></div>
  <div class="grid-item"><img onclick="change('vayne')" src="pics/vayne.png"></div>
  <div class="grid-item"><img onclick="change('veigar')" src="pics/veigar.png"></div>
  <div class="grid-item"><img onclick="change('velkoz')" src="pics/velkoz.png"></div>
  <div class="grid-item"><img onclick="change('vex')" src="pics/vex.png"></div>
  <div class="grid-item"><img onclick="change('vi')" src="pics/vi.png"></div>
  <div class="grid-item"><img onclick="change('viego')" src="pics/viego.png"></div>
  <div class="grid-item"><img onclick="change('viktor')" src="pics/viktor.png"></div>
  <div class="grid-item"><img onclick="change('vladimir')" src="pics/vladimir.png"></div>
  <div class="grid-item"><img onclick="change('volibear')" src="pics/volibear.png"></div>
  <div class="grid-item"><img onclick="change('warwick')" src="pics/warwick.png"></div>
  <div class="grid-item"><img onclick="change('wukong')" src="pics/wukong.png"></div>
  <div class="grid-item"><img onclick="change('xayah')" src="pics/xayah.png"></div>
  <div class="grid-item"><img onclick="change('xerath')" src="pics/xerath.png"></div>
  <div class="grid-item"><img onclick="change('xin_zhao')" src="pics/xin_zhao.png"></div>
  <div class="grid-item"><img onclick="change('yasuo')" src="pics/yasuo.png"></div>
  <div class="grid-item"><img onclick="change('yone')" src="pics/yone.png"></div>
  <div class="grid-item"><img onclick="change('yorik')" src="pics/yorik.png"></div>
  <div class="grid-item"><img onclick="change('yuumi')" src="pics/yuumi.png"></div>
  <div class="grid-item"><img onclick="change('zac')" src="pics/zac.png"></div>
  <div class="grid-item"><img onclick="change('zed')" src="pics/zed.png"></div>
  <div class="grid-item"><img onclick="change('zeri')" src="pics/ziggs.png"></div>
  <div class="grid-item"><img onclick="change('ziggs')" src="pics/zilean.png"></div>
  <div class="grid-item"><img onclick="change('zilean')" src="pics/zoe.png"></div>
  <div class="grid-item"><img onclick="change('zoe')" src="pics/zeri.png"></div>
  <div class="grid-item"><img onclick="change('zyra')" src="pics/zyra.png"></div>
</div>

<div class="divInputButton">
    <button class="hvr-underline-from-center" type="button">Save</button>
</div>
  <script src="change.js"></script>
  <script src="config.js"></script>
</body>
</html>
              
            
!

CSS

              
                function C (name, status){
  this.name = name,
  this.status = status
}

function change(id){
  var xhttp = new XMLHttpRequest();
  xhttp.open("GET", "champs.txt", true);
  xhttp.onreadystatechange = function() {
      if (xhttp.readyState === 4) {
        var allText = xhttp.responseText;

        const champArray = allText.split('\n');
        var list = [];
        for (let i = 0; i < champArray.length; i++){
          let currentChamp = champArray[i].split(', ');
          const c = new C(currentChamp[0], currentChamp[1]);
          list.push(c);
        }
        let currentObeject = list.find(i => i.name == id);
        if (currentObeject.status.slice(0,-1) === "done"){
          currentObeject.status = "open";
        }else{
          currentObeject.status = "done";
        }
        const index = list.findIndex(currentObeject => currentObeject.name === id);
        list[index] = currentObeject;

        var backArray = [];
        for (j = 0; j<list.length; j++){
        var k = list[j];
        backArray[j] = k.name + ", " + k.status;
        }

        var newAllText = backArray.join('\n');
        console.log(newAllText);
        allText = newAllText;
        return newAllText, allText;
      }
    }
    //console.log(allText);
    xhttp.send();
}
              
            
!

JS

              
                .grid-container {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto auto auto auto auto;
    /*background-color: #ffffff;*/
    padding: 20px;
  }
.grid-item {
 /*background-color: rgba(255, 255, 255, 0.8);*/
  /*border: 1px solid rgba(255, 255, 255, 0.8);*/
  padding: 2px;
  font-size: 5px;
  text-align: center;
  cursor: pointer;
}

.divInputButton {
  right: 50%;
  font-family: verdana;
  position: absolute;
  /*top: 30%;*/ 
  right: 50%;
  transform: translate(50%,-50%)
}  

.button1 {
  background-color: #f4d41e;
  border: none;
  color: white;
  padding: 8px 24px;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  opacity: 0.6;
  transition: 0.3s;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 5px;
  position: fixed;
}

.button1:hover {
  opacity: 1;
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24), 0 17px 50px 0 rgba(0,0,0,0.19);
}

h1{
  color: hsl(131, 89%, 83%);
  font-size: 30px;
  font-weight: bold;
  font-family: monospace;
  letter-spacing: 7px;
  cursor: pointer;
  text-align: center; 
}
h1 span{
  transition: 1.5s linear
}
h1:hover span:nth-child(1){
  margin-right: 10px
}
h1:hover span:nth-child(1):after{
  content: "";
}
h1:hover span:nth-child(2){
  margin-left: 10px
}
h1:hover span{
  color: #fff;
  text-shadow: 0 0 10px #fff,
               0 0 20px #fff, 
               0 0 40px #fff;
}
/*made with ❤, by qpi65*/
html, body {
  /*background-color: #000000;*/
  width: 99.555%;
  height: 99.555%
}

body {
  background: linear-gradient(-45deg, #52d1ee, #e73c7e, #eecf52, #52d1ee);
  /*background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);*/
  background-size: 320% 420%;
  animation: gradient 15s ease infinite;
}

@keyframes gradient {
  0% {
      background-position: 0% 50%;
  }
  50% {
      background-position: 100% 50%;
  }
  100% {
      background-position: 0% 50%;
  }
}

/* Underline From Center */
.hvr-underline-from-center {
  display: inline-block;
  vertical-align: middle;
  -webkit-transform: perspective(1px) translateZ(0);
  transform: perspective(1px) translateZ(0);
  box-shadow: 0 0 1px rgba(0, 0, 0, 0);
  position: relative;
  overflow: hidden;
  background-color: lightgray;
  border: none;
  color: black;
  padding: 8px 24px;
  text-align: center;
  font-size: 16px;
  margin: 4px 2px;
  /*opacity: 0.6;*/
  transition: 0.3s;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  border-radius: 5px;
  
}
.hvr-underline-from-center:before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 51%;
  right: 51%;
  bottom: 0;
  background: #20d126;
  height: 4px;
  -webkit-transition-property: left, right;
  transition-property: left, right;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s;
  -webkit-transition-timing-function: ease-out;
  transition-timing-function: ease-out;
}
.hvr-underline-from-center:hover:before, .hvr-underline-from-center:focus:before, .hvr-underline-from-center:active:before {
  left: 0;
  right: 0;
}

.joacLogo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 20%;
  position: relative;
}

.joacLogo:hover {
  cursor: pointer;
}

/* Shine */
.hover14 figure {
	position: relative;
}
.headlineJoac::before {
	position: absolute;
	top: 0;
	left: -75%;
	z-index: 2;
	display: block;
	content: '';
	width: 50%;
	height: 100%;
	background: -webkit-linear-gradient(left, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.3) 100%);
	-webkit-transform: skewX(-25deg);
	transform: skewX(-25deg);
}
.headlineJoac:hover::before {
	-webkit-animation: shine .75s;
	animation: shine .75s;
}
@-webkit-keyframes shine {
	100% {
		left: 125%;
	}
}
@keyframes shine {
	100% {
		left: 125%;
	}
}

/* width */
::-webkit-scrollbar {
  width: 15px;
}

/* Track */
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px white; 
  border-radius: 10px;
}
 
/* Handle */
::-webkit-scrollbar-thumb {
  background: rgb(70, 70, 70); 
  border-radius: 4px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: rgb(31, 31, 31); 
}
              
            
!
999px

Console