• 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

    • If you have top secret documents from the government or your company, you will not use a user cloud service. You will use a cloud service aimed at companies. Even governments use cloud services made for governments. Stop being so stupid that you think that your useless information on your PC is as important as you think it is. Your information is not important at all, you are not important to the government or to Microsoft, Google or Apple. If you cared about the content, you would not use these documents and photos on Android and iPhone phones because the telemetry there is 100,000% worse than on Windows 11.
    • "not some corporate backdoor deal." Sure. In the last years, Nexus Mod has adopted a lot of corporate-ish politics, including DEI. Nobody (of the users of the platform) asked for it.
    • So, user error then. If there aren't at least 2 copies of a dataset, that data isn't important. Literally in the ToS You should have a regular backup plan as Microsoft won’t be able to retrieve Your Content or Data once your account is closed. Also this article is mixing bitlocker in - it isn't in play here at all that I can see. So the guy uploaded a load of data, then destroyed the source data, then 'lost' access to the MSA. Why would you do the upload and then blow the source away, makes no sense.
    • Cloud is a security risk. You are sharing information with a third party, and this third party could (and might) share your information with others (for statistics, analysis, etc., a risk of security). And this third party could delete or restrict access to your information at will.
    • Well, apparently those won't all be CPU lanes, only 24 of them. And instead of an 8-lane gen 4 link to the chipset, they'll revert back to 4 lanes, but at gen 5 speeds. That means that there's barely any improvement in I/O, which is disappointing. The only improvement that I see is that the 4 lanes that were gen 4 on the CPU become gen 5 too. Some lanes become gen 5 on the chipset, but that only makes it easier to hit a bottleneck on the CPU-chipset link.
  • Recent Achievements

    • Experienced
      dismuter went up a rank
      Experienced
    • One Month Later
      mevinyavin earned a badge
      One Month Later
    • Week One Done
      rozermack875 earned a badge
      Week One Done
    • Week One Done
      oneworldtechnologies earned a badge
      Week One Done
    • Veteran
      matthiew went up a rank
      Veteran
  • Popular Contributors

    1. 1
      +primortal
      684
    2. 2
      ATLien_0
      266
    3. 3
      Michael Scrip
      196
    4. 4
      +FloatingFatMan
      181
    5. 5
      Steven P.
      142
  • Tell a friend

    Love Neowin? Tell a friend!