• 0

Javascript to auto scale webpage


Question

Recommended Posts

  • 0
  On 23/03/2014 at 14:08, xendrome said:

So if I do this, which I currently have active, it seems like I have to increase the padding to like 800 to get it zoomed out enough, and as I increase the padding, it shifts the whole site over. Seahorsepip, if you can, look at the live site, I have it enabled now.

Remove legacy-browse.js

That code is already in the conditional comment, also make sure to just use 80px padding

  • 0
  On 23/03/2014 at 14:25, Seahorsepip said:

Remove legacy-browse.js

That code is already in the conditional comment, also make sure to just use 80px padding

 

Ok take a look now, zoom looks ok, but it's cutting off the left side in Chrome, IE11 looks good.

  • 0
  On 23/03/2014 at 14:31, xendrome said:

Ok take a look now, zoom looks ok, but it's cutting off the left side in Chrome, IE11 looks good.

change:

body {
	width: 748px;
	overflow-x: hidden;
	padding: 0 80px; /* Change 80px to increase/decrease zoom size */
	transform-origin: top left;
        -ms-transform-origin: top left;
}

to:

body {
	width: 748px;
	overflow-x: hidden;
	padding: 0 80px; /* Change 80px to increase/decrease zoom size */
	transform-origin: top left;
        -webkit-transform-origin: top left;
        -ms-transform-origin: top left;
}
  • 0
  On 23/03/2014 at 14:45, Seahorsepip said:

 

change:

 

 

Ok done, IE11 and Chrome look good.. IE8 seems to be uneffected and looks normal. :) Making progress.

And BTW I changed the padding to 300 for now, looks decent and doesn't mess up any font spacing

  • 0
  On 23/03/2014 at 15:08, xendrome said:

Ok done, IE11 and Chrome look good.. IE8 seems to be uneffected and looks normal. :) Making progress.

My bad change lt IE 8 to lt IE9 in that header snippet.
  • 0

I figured it out, I wasn't loading jquery first prior to the IE 9 script.

 

But it does appear to shifting too far right in IE8, if you have IE8 take a look.

 

Also, in IE11, the "Select Department" dropdown at the top left, scales properly, but on Chrome it does not, any ideas on what might fix that, if even possible.

  • 0
  On 23/03/2014 at 20:28, xendrome said:

I figured it out, I wasn't loading jquery first prior to the IE 9 script.

 

But it does appear to shifting too far right in IE8, if you have IE8 take a look.

 

Also, in IE11, the "Select Department" dropdown at the top left, scales properly, but on Chrome it does not, any ideas on what might fix that, if even possible.

In the IE fallback script you can try changing the variable zoom to zoomie this might fix the issue.

  • 0
  On 24/03/2014 at 15:59, Seahorsepip said:

In the IE fallback script you can try changing the variable zoom to zoomie this might fix the issue.

 

I think I am just going to display an "upgrade browser" bar across the top once every 24 hours to users that have IE8 or less.

 

Any suggestion on the "Select Department" dropdown at the top left of the homepage? It doesn't scale the dropdown box up in Chrome, but does in IE.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • The multi tab function is definitely useful. I was constantly asking it to analyze my screen and perform certain functions, but having to do that for each tab was a chore. This is def a welcome improvement!
    • Tablet mode doesn't exist on public releases in Windows 11, but there is a very good option activated with a few registry tweaks they must be testing. I've been using it on an old Surface Pro and love it. Minimised taskbar with no pinned icons or Start button visible, only clock and settings (battery/wifi/sound) icons. When the whole thing is visible, the icons are much larger and easy to tap. Swiping up does shows it and if you continue, opens the Start Menu. Needs more work, like a single finger swipe for multitasking, and perhaps miniaturised widget/s visible on the left, but it works well and I think it even works with mouse & keyboard use (mine's forced always on). Reddit - https://preview.redd.it/what-w...51db8351dd56cbf6bc012397a20
    • A GUI wrapper makes something like this actually accessible for people coming from any other system. I do not want to ever touch the terminal, we are no longer in the 80's, so this is actually a massive help, even if the underlying software isn't actually great. Bullying should be called out, and I believe that's what this post is about. So I'm glad it's happened, and I hope that this dev, or someone else picks it back up and makes the Linux Desktop a touch more relevant in the modern world.
    • the point is you need new PCs with a dedicated co-pilot button lol
    • The problem is that LOUD and AGRESSIVE persons end up getting their way one way or another. In this case, the dodgy user was successful in making the dev quit the project. If the dev continued to work on it, their comments could well have had ramifications on others who may have wanted to try it, also thinking that what was said was true, and the tool may never have got traction. It's just flat out bullying, lets call it what it is, and needs to be addressed. Often bullies are the actual "snowflakes", who have often missed developmental milestones in childhood, or experienced trauma and as a result don't have the intellect or skills to manage their emotions. It often comes across as aggressive, much like this user. So while this user clearly has something going on, I do hope they seek help. As for the developer, I also hope they build some resilience, and experience the opposite of bullying via positive words from this news story. Calling them a "snowflake" is effectively bullying in itself, and that too needs to be called out. So I'm calling you out @noobient. Your point otherwise is valid. But we all need to have support too, and clearly there wasn't during this developers time of bullying. We as part of the tech community need to do better.
  • Recent Achievements

    • First Post
      Gladiattore earned a badge
      First Post
    • Reacting Well
      Gladiattore earned a badge
      Reacting Well
    • Week One Done
      NeoWeen earned a badge
      Week One Done
    • One Month Later
      BA the Curmudgeon earned a badge
      One Month Later
    • First Post
      Doreen768 earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      649
    2. 2
      ATLien_0
      256
    3. 3
      Xenon
      165
    4. 4
      neufuse
      143
    5. 5
      +FloatingFatMan
      108
  • Tell a friend

    Love Neowin? Tell a friend!