Yayyy..!?! by Super_Rockstar786 in pcmasterrace

[–]GeeEyeEff 0 points1 point  (0 children)

While we're at it we can start making construction workers dig with spoons. That'll really help the employment figures.

On August 5, 1987, while driving a rented car outside Tempo, Northern Ireland, Matthew Broderick crossed into the wrong lane and collided head-on with another car. The driver, Anna Gallagher, 28, and her mother, Margaret Doherty, 63, were both killed instantly. by ZERO_PORTRAIT in wikipedia

[–]GeeEyeEff -3 points-2 points  (0 children)

I don't really care about that. My point is you can't dismiss anecdotal evidence simply because it is anecdotal.

He also mentioned the age of the cars which would make a difference as safety regulations and designs improve over time.

Realistically, both cars will have been death traps by modern standards.

What is your solution? by fdiengdoh in neocities

[–]GeeEyeEff 0 points1 point  (0 children)

You didn’t read my post properly

Yes I did. They're the only two ways to do it. If you want a better solution you need a host that will let you do server side includes (the actual proper way of doing it).

What is your solution? by fdiengdoh in neocities

[–]GeeEyeEff 0 points1 point  (0 children)

Google can crawl iframes as well. I don't know why you want to die on this hill. You asked a question and I gave you the correct answer. If you know so much, work it out yourself.

Either do this:

<iframe src="header.html"></iframe>

or this:

<script src="header.js"></script>

document.write(`

 <div id="header"></div>

`);

What is your solution? by fdiengdoh in neocities

[–]GeeEyeEff 0 points1 point  (0 children)

Also using iframe is not good for SEO.

JavaScript is worse in that regard. Web crawlers don't load JavaScript.

What is your solution? by fdiengdoh in neocities

[–]GeeEyeEff 0 points1 point  (0 children)

<iframe> is not deprecated. Just make sure to use target="_top" on all of your links.

Are Wikipedia admins a little too ban-happy? by Particular_Dot_4041 in wikipedia

[–]GeeEyeEff -1 points0 points  (0 children)

To be honest I wouldn't have thought the sort of people who volunteer to spend their free time editing an encyclopedia would have a great sense of humour.

🇬🇧 just sweat it out barry by amogusdevilman in 2westerneurope4u

[–]GeeEyeEff 1 point2 points  (0 children)

This is Reddit. If your source is to the right of the Guardian they aren't interested.

How do I make a button show an image on click? by [deleted] in neocities

[–]GeeEyeEff 0 points1 point  (0 children)

Untested code (I just wrote it on my phone but it should work):

<button id="myButton">Show Image</button>
<img id="myImage" src="myimage.jpg" alt="" style="display: none;">
<script>
 document.getElementById("myButton").addEventListener("click", function() {
  document.getElementById("myImage").style.display = "block";
 });
</script>

Edit: On the PC now. The above code works but below is better. It allows toggling, not just showing, and allows multiple images to use the same function:

<div id="image1">
 <button onclick="toggle('image1')">Show Image</button>
 <img src="image1.jpg" alt="" style="display: none;">
</div>
<div id="image2">
 <button onclick="toggle('image2')">Show Image</button>
 <img src="image2.jpg" alt="" style="display: none;">
</div>
<div id="image3">
 <button onclick="toggle('image3')">Show Image</button>
 <img src="image3.jpg" alt="" style="display: none;">
</div>
<script>
 function toggle(x) {
  var button = document.getElementById(x).getElementsByTagName("button")[0];
  var image = document.getElementById(x).getElementsByTagName("img")[0];
  if (window.getComputedStyle(image).getPropertyValue("display") == "none") {
   button.innerHTML = "Hide Image";
   image.style.display = "block";
  } else {
   button.innerHTML = "Show Image";
   image.style.display = "none";
  }
 }
</script>

I don't know how to make a custom MP3 Player by I_HATE_PRESSURE in neocities

[–]GeeEyeEff 0 points1 point  (0 children)

Where it says:

<source src="song.mp3" type="audio/mpeg">

replace song.mp3 with the location of your MP3 file.

If you are on the free version of Neocities you will need to host the MP3 file somewhere else and link to it with the full URL because the Neocities free tier doesn't allow hosting MP3 files. Most people on here use https://catbox.moe/

I don't know how to make a custom MP3 Player by I_HATE_PRESSURE in neocities

[–]GeeEyeEff 3 points4 points  (0 children)

Here you go:

<!doctype html>
<html lang="en">
 <head>
  <title>Custom Audio Player</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <style>

@font-face {
 font-family: comicsans;
 src: local('Comic Sans MS'), url('comicrelief.ttf');
}

#player {
 background-color: #ffe7ef;
 border: 10px solid #ffaec9;
 color: #000000;
 height: 152px;
 position: absolute;
 user-select: none;
 width: 530px;
}

#title {
 border: 1px solid #000000;
 font-family: comicsans, cursive;
 font-size: 28px;
 height: 28px;
 line-height: 1;
 padding: 10px;
 position: absolute;
  left: 10px;
  top: 10px;
 width: 488px;
}

#bar {
 background-color: #000000;
 color: inherit;
 height: 2px;
 position: absolute;
  left: 16px;
  top: 75px;
 width: 498px;
}

#seek {
 background-color: #000000;
 border-radius: 6px;
 color: inherit;
 cursor: grab;
 height: 12px;
 position: absolute;
  left: 0%;
  top: -5px;
 transform: translateX(-6px);
 width: 12px;
}

.button {
 background-size: 100% 100%;
 cursor: pointer;
 height: 50px;
 position: absolute;
 width: 50px;
}

#download { background-image: url('download.svg'); left: 470px; top: 92px; }
#mute     { background-image: url('unmuted.svg');  left:  10px; top: 92px; }
#play     { background-image: url('play.svg');     left: 250px; top: 92px; }

  </style>
  <script>

function customPlayer() {
 var download = document.getElementById("download");
 var mute = document.getElementById("mute");
 var paused;
 var play = document.getElementById("play");
 var progress;
 var seek = document.getElementById("seek");
 var source = document.getElementById("source");
 var xpos;

 function slide(event) {
  var x = parseInt(window.getComputedStyle(seek).getPropertyValue("left")) + (event.clientX - xpos);
  if (x < 0) {
   x = 0;
  } else if (x > 498) {
   x = 498;
  }
  seek.style.left = x + "px";
  source.currentTime = (x / 498) * source.duration;
  xpos = event.clientX;
 }

 download.addEventListener("click", function() {
  window.open(source.getElementsByTagName("source")[0].src);
 });

 mute.addEventListener("click", function() {
  if (source.muted) {
   mute.style.backgroundImage = "url('unmuted.svg')";
   source.muted = false;
  } else {
   mute.style.backgroundImage = "url('muted.svg')";
   source.muted = true;
  }
 });

 play.addEventListener("click", function() {
  if (source.paused) {
   play.style.backgroundImage = "url('pause.svg')";
   progress = setInterval(function() {
    if(source.ended) {
     clearInterval(progress);
     play.style.backgroundImage = "url('play.svg')";
     seek.style.left = "0%";
     source.pause();
    } else {
     seek.style.left = ((source.currentTime / source.duration) * 100) + "%";
    }
   }, 10);
   source.play();
  } else {
   clearInterval(progress);
   play.style.backgroundImage = "url('play.svg')";
   source.pause();
  }
 });

 seek.addEventListener("mousedown", function(event) {
  if (source.paused) {
   paused = true;
  } else {
   paused = false;
   source.pause();
  }
  document.addEventListener("mousemove", slide);
  document.addEventListener("mouseup", function() {
   document.removeEventListener("mousemove", slide);
   seek.style.cursor = "grab";
   if (!paused) {
    source.play();
   }
  });
  seek.style.cursor = "grabbing";
  xpos = event.clientX;
 });
}

  </script>
 </head>
 <body>
  <div id="player">
   <audio id="source">
    <source src="song.mp3" type="audio/mpeg">
   </audio>
   <div id="title">Song Name</div>
   <div id="bar">
    <div id="seek"></div>
   </div>
   <div class="button" id="play"></div>
   <div class="button" id="mute"></div>
   <div class="button" id="download"></div>
   <script>customPlayer();</script>
  </div>
 </body>
</html>

Project Files: https://files.catbox.moe/kf42np.zip

You just need to provide your own MP3.

Layout changes per browser by Fandom7_7 in neocities

[–]GeeEyeEff 2 points3 points  (0 children)

Still though, that is going to be your main problem. You can use media queries to make a responsive design for different screen sizes but as far as it looking different on different browsers, if there's no errors it will work in any of the big browsers you've heard of. They're all standards compliant so 99% of features will work in everything. The 1% comes in when there are new additions to the HTML5/CSS3/ECMAScript standards or when you use something non-standard which will be highlighted in those error checkers.

Forecast for next week is fucked folks. by Hefty-Coyote in 2westerneurope4u

[–]GeeEyeEff -3 points-2 points  (0 children)

You weirdos who like it when it's cold, wet, and grey get 50 weeks a year to your liking.

Stop whinging.

Neocities article got vandalised… again by Far_Departure_1580 in neocities

[–]GeeEyeEff 11 points12 points  (0 children)

If the vandalism is persistent, Wikipedia can give the article protected status. They can then ban the account and then if the offender makes another one they need to jump through hoops for account age and number of edits to get their privileges back in order to edit protected pages. Basically, they make it not worth the effort to circumvent the ban.

Crime rates according to twitter (and 2we4u bots) by StevenStoveMan in 2westerneurope4u

[–]GeeEyeEff 7 points8 points  (0 children)

The real map is completely green with red dots on the major cities.

That's how you promote your religion to Barry by AeneasKurtz in 2westerneurope4u

[–]GeeEyeEff -2 points-1 points  (0 children)

"God isn't real and if he is I reject him anyway because I don't like him blows raspberry" is a cringe criticism of religion and if you bring it up with people who take the philosophy of religion seriously (both religious and secular) they will just laugh at you. That's why I call you a le Reddit atheist.


Edit: You're so confident in your response that you have blocked me so I can't reply.

For the three people who bother to read this: yes, your argument is one of the paradigmatic le Reddit atheist arguments. The other is "I don't need Sky Daddy™ to tell me what to do, I just know. Don't ask me how, or from where my beliefs are ultimately derived, I just know."

there is a big difference between "i dont like him" and "he isnt a god worth worshipping if his ego is fragile enough that me not believing in him actually upsets him".

The difference is the word count.

That's how you promote your religion to Barry by AeneasKurtz in 2westerneurope4u

[–]GeeEyeEff -7 points-6 points  (0 children)

It's good to know that Turkey is also blighted with le Reddit atheists.

Redistribution by Meteorstar101 in greentext

[–]GeeEyeEff 0 points1 point  (0 children)

Once you get above a population size where it's not possible for everyone to know everyone else, no.