Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 05/19/2020 in all areas

  1. Yeah the OS believes that the desktop is 1440 wide, but there's actually 4x the pixels. There are some good blog posts that explain how this stuff works if you are curious. Right, well, it's still going to be 1440, so depending on the size of the screenshot when embedded in the document, that might be ok. Ideally you would have the be 720w or less, or whatever relative size you have. If it's too late for that at this point, then it's a point of reference for your process the next time around, or if you do a revision.
    1 point
  2. Here is the javascript code corrected: function myFunction(imgs) { var expandImg = document.getElementById("expandedImg"); var imgText = document.getElementById("imgtext"); expandImg.src = imgs.src; imgText.innerHTML = imgs.alt; expandImg.parentElement.style.display = "block"; } function initMainImg() { var imgs = document.getElementsByClassName('column_images')[0].children[0]; myFunction(imgs); } initMainImg(); Here's a Codepen where I extracted this into a working example. With Codepen the javascript, css and html have to be separated into their sections, so this is just to show you that this code works with your styles and original markup, and the broken things removed. Basically what this code does is find the first div with class 'column_images' and gets the first child element, which is the image from that first div. It then passes that to myFunction so that an initial image will be loaded. To add a little variation to this, it's easy enough to pick one of the images at random to be initialized: function myFunction(imgs) { var expandImg = document.getElementById("expandedImg"); var imgText = document.getElementById("imgtext"); expandImg.src = imgs.src; imgText.innerHTML = imgs.alt; expandImg.parentElement.style.display = "block"; } function initMainImg() { var imgs = document.getElementsByClassName('column_images'); index = Math.floor(Math.random() * imgs.length); myFunction(imgs[index].children[0]); } initMainImg(); Here's the codepen for that version.
    1 point
  3. These look a lot like registration keys for commercial software. The problem with registration schemes for many commercial products is that the scheme gets reverse engineered and then people are able to generate their own "legitimate" keys that register and unlock software. I was just pointing out that these might look like a registration key, but they aren't.
    1 point
This leaderboard is set to New York/GMT-04:00
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.