Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Oh, I've seen copies [of Linux Journal] around the terminal room at The Labs. -- Dennis Ritchie


devel / comp.lang.javascript / Re: CSS scale transform using javascript?

SubjectAuthor
* CSS scale transform using javascript?Jonas Thörnvall
`* Re: CSS scale transform using javascript?Jonas Thörnvall
 `* Re: CSS scale transform using javascript?Jonas Thörnvall
  `* Re: CSS scale transform using javascript?Jonas Thörnvall
   `* Re: CSS scale transform using javascript?Jonas Thörnvall
    `* Re: CSS scale transform using javascript?Jonas Thörnvall
     `* Re: CSS scale transform using javascript?The Natural Philosopher
      `* Re: CSS scale transform using javascript?Jonas Thörnvall
       `* Re: CSS scale transform using javascript?The Natural Philosopher
        +* Re: CSS scale transform using javascript?Jonas Thörnvall
        |`- Re: CSS scale transform using javascript?The Natural Philosopher
        `* Re: CSS scale transform using javascript?Jonas Thörnvall
         `* Re: CSS scale transform using javascript?The Natural Philosopher
          +- Re: CSS scale transform using javascript?Jonas Thörnvall
          +* Re: CSS scale transform using javascript?Jonas Thörnvall
          |+- Re: CSS scale transform using javascript?Jonas Thörnvall
          |`* Re: CSS scale transform using javascript?The Natural Philosopher
          | `* Re: CSS scale transform using javascript?Jonas Thörnvall
          |  `* Re: CSS scale transform using javascript?The Natural Philosopher
          |   +- Re: CSS scale transform using javascript?Jonas Thörnvall
          |   +* Re: CSS scale transform using javascript?Jonas Thörnvall
          |   |`- Re: CSS scale transform using javascript?Jonas Thörnvall
          |   +- Re: CSS scale transform using javascript?Jonas Thörnvall
          |   `* Re: CSS scale transform using javascript?Jonas Thörnvall
          |    `* Re: CSS scale transform using javascript?Jonas Thörnvall
          |     `* Re: CSS scale transform using javascript?The Natural Philosopher
          |      `* Re: CSS scale transform using javascript?Jonas Thörnvall
          |       +- Re: CSS scale transform using javascript?Jonas Thörnvall
          |       `- Re: CSS scale transform using javascript?The Natural Philosopher
          `* Re: CSS scale transform using javascript?Jonas Thörnvall
           +- Re: CSS scale transform using javascript?Jonas Thörnvall
           `* Re: CSS scale transform using javascript?Jonas Thörnvall
            +- Re: CSS scale transform using javascript?Jonas Thörnvall
            `- Re: CSS scale transform using javascript?Jonas Thörnvall

Pages:12
Re: CSS scale transform using javascript?

<cc96436b-f26e-49bd-a28d-f5d7d2906d4dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17323&group=comp.lang.javascript#17323

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a37:a54c:: with SMTP id o73mr17167431qke.334.1632595187264; Sat, 25 Sep 2021 11:39:47 -0700 (PDT)
X-Received: by 2002:a9d:64f:: with SMTP id 73mr589630otn.373.1632595186941; Sat, 25 Sep 2021 11:39:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!news.swapon.de!news.uzoreto.com!tr1.eu1.usenetexpress.com!feeder.usenetexpress.com!tr3.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Sat, 25 Sep 2021 11:39:46 -0700 (PDT)
In-Reply-To: <sinagm$31t$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com> <6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com> <0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com> <f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com> <d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com> <9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com> <sikj3h$9ks$1@dont-email.me> <15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com> <sikq1q$617$1@dont-email.me> <33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com> <simnt8$22n$2@dont-email.me> <b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com> <sin8qe$mj2$1@dont-email.me> <8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com> <sinagm$31t$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cc96436b-f26e-49bd-a28d-f5d7d2906d4dn@googlegroups.com>
Subject: Re: CSS scale transform using javascript?
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Sat, 25 Sep 2021 18:39:47 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 66
 by: Jonas Thörnvall - Sat, 25 Sep 2021 18:39 UTC

lördag 25 september 2021 kl. 16:08:27 UTC+2 skrev The Natural Philosopher:
> On 25/09/2021 14:46, Jonas Thörnvall wrote:
> > lördag 25 september 2021 kl. 15:39:31 UTC+2 skrev The Natural Philosopher:
> >> On 25/09/2021 12:49, Jonas Thörnvall wrote:
> >>
> >>>
> >>> So far the only thing that will scale it uniformly is.
> >>>
> >>> html {
> >>> transform: scale(0.5,0.7);
> >>> }
> >>>
> >>> So maybe one should have a script that invoke different CSS files deipendent on resolution.
> >>> It seem idiotic to me, but....
> >>>
> >> var x = document.getElementsByTagName("HTML")[0];
> >>
> >> x.style.transform="scale(0.5,0.7)";
> >
> > Yeah but it doesn't work....
> >
> It does, I tested it
>
> <!DOCTYPE html>
> <html>
> <body>
>
> <h3>A demonstration of how to access an HTML element</h3>
>
> <p>Click the button to scale the document.</p>
>
> <button onclick="myFunction()">Try it</button>
>
> <p id="demo"></p>
>
> <script>
> function myFunction() {
> var x = document.getElementsByTagName("BODY")[0];
> x.style.transform = "scale(0.5,1.3)";
> }
> </script>
>
> </body>
> </html>
>
>
> --
> There’s a mighty big difference between good, sound reasons and reasons
> that sound good.
>
> Burton Hillis (William Vaughn, American columnist)
Yeah i like it, better then mine i hope it works over all browsers.
<script>
function getResolution() {
dispWidth=screen.width;
dispHeight=screen.height;
} getResolution();
var xScale=dispWidth/220;
var yScale=dispHeight/180;
var dispScale = document.getElementsByTagName("BODY")[0];
dispScale.style.transform = "scale("+xScale+","+yScale+")";
</script>

Re: CSS scale transform using javascript?

<78fed343-90a7-4bdb-84db-7f05a13b7baan@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17324&group=comp.lang.javascript#17324

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a37:747:: with SMTP id 68mr17040892qkh.526.1632595573519;
Sat, 25 Sep 2021 11:46:13 -0700 (PDT)
X-Received: by 2002:a9d:7002:: with SMTP id k2mr10463351otj.206.1632595573277;
Sat, 25 Sep 2021 11:46:13 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Sat, 25 Sep 2021 11:46:13 -0700 (PDT)
In-Reply-To: <cc96436b-f26e-49bd-a28d-f5d7d2906d4dn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com>
<6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com> <0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com>
<f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com> <d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com>
<9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com> <sikj3h$9ks$1@dont-email.me>
<15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com> <sikq1q$617$1@dont-email.me>
<33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com> <simnt8$22n$2@dont-email.me>
<b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com> <sin8qe$mj2$1@dont-email.me>
<8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com> <sinagm$31t$1@dont-email.me>
<cc96436b-f26e-49bd-a28d-f5d7d2906d4dn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <78fed343-90a7-4bdb-84db-7f05a13b7baan@googlegroups.com>
Subject: Re: CSS scale transform using javascript?
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Sat, 25 Sep 2021 18:46:13 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 69
 by: Jonas Thörnvall - Sat, 25 Sep 2021 18:46 UTC

lördag 25 september 2021 kl. 20:39:51 UTC+2 skrev Jonas Thörnvall:
> lördag 25 september 2021 kl. 16:08:27 UTC+2 skrev The Natural Philosopher:
> > On 25/09/2021 14:46, Jonas Thörnvall wrote:
> > > lördag 25 september 2021 kl. 15:39:31 UTC+2 skrev The Natural Philosopher:
> > >> On 25/09/2021 12:49, Jonas Thörnvall wrote:
> > >>
> > >>>
> > >>> So far the only thing that will scale it uniformly is.
> > >>>
> > >>> html {
> > >>> transform: scale(0.5,0.7);
> > >>> }
> > >>>
> > >>> So maybe one should have a script that invoke different CSS files deipendent on resolution.
> > >>> It seem idiotic to me, but....
> > >>>
> > >> var x = document.getElementsByTagName("HTML")[0];
> > >>
> > >> x.style.transform="scale(0.5,0.7)";
> > >
> > > Yeah but it doesn't work....
> > >
> > It does, I tested it
> >
> > <!DOCTYPE html>
> > <html>
> > <body>
> >
> > <h3>A demonstration of how to access an HTML element</h3>
> >
> > <p>Click the button to scale the document.</p>
> >
> > <button onclick="myFunction()">Try it</button>
> >
> > <p id="demo"></p>
> >
> > <script>
> > function myFunction() {
> > var x = document.getElementsByTagName("BODY")[0];
> > x.style.transform = "scale(0.5,1.3)";
> > }
> > </script>
> >
> > </body>
> > </html>
> >
> >
> > --
> > There’s a mighty big difference between good, sound reasons and reasons
> > that sound good.
> >
> > Burton Hillis (William Vaughn, American columnist)
> Yeah i like it, better then mine i hope it works over all browsers.
> <script>
> function getResolution() {
> dispWidth=screen.width;
> dispHeight=screen.height;
> }
> getResolution();
> var xScale=dispWidth/220;
> var yScale=dispHeight/180;
> var dispScale = document.getElementsByTagName("BODY")[0];
> dispScale.style.transform = "scale("+xScale+","+yScale+")";
> </script>
Now when the solution so neat i may actually add sliders to zoom in.

Re: CSS scale transform using javascript?

<2623c2ab-7c0e-4275-904c-3b6b44227784n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17325&group=comp.lang.javascript#17325

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a37:746:: with SMTP id 67mr17280391qkh.465.1632601671116;
Sat, 25 Sep 2021 13:27:51 -0700 (PDT)
X-Received: by 2002:a05:6808:150c:: with SMTP id u12mr6372548oiw.136.1632601670850;
Sat, 25 Sep 2021 13:27:50 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Sat, 25 Sep 2021 13:27:50 -0700 (PDT)
In-Reply-To: <sinagm$31t$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com>
<6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com> <0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com>
<f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com> <d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com>
<9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com> <sikj3h$9ks$1@dont-email.me>
<15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com> <sikq1q$617$1@dont-email.me>
<33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com> <simnt8$22n$2@dont-email.me>
<b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com> <sin8qe$mj2$1@dont-email.me>
<8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com> <sinagm$31t$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2623c2ab-7c0e-4275-904c-3b6b44227784n@googlegroups.com>
Subject: Re: CSS scale transform using javascript?
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Sat, 25 Sep 2021 20:27:51 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 79
 by: Jonas Thörnvall - Sat, 25 Sep 2021 20:27 UTC

lördag 25 september 2021 kl. 16:08:27 UTC+2 skrev The Natural Philosopher:
> On 25/09/2021 14:46, Jonas Thörnvall wrote:
> > lördag 25 september 2021 kl. 15:39:31 UTC+2 skrev The Natural Philosopher:
> >> On 25/09/2021 12:49, Jonas Thörnvall wrote:
> >>
> >>>
> >>> So far the only thing that will scale it uniformly is.
> >>>
> >>> html {
> >>> transform: scale(0.5,0.7);
> >>> }
> >>>
> >>> So maybe one should have a script that invoke different CSS files deipendent on resolution.
> >>> It seem idiotic to me, but....
> >>>
> >> var x = document.getElementsByTagName("HTML")[0];
> >>
> >> x.style.transform="scale(0.5,0.7)";
> >
> > Yeah but it doesn't work....
> >
> It does, I tested it
>
> <!DOCTYPE html>
> <html>
> <body>
>
> <h3>A demonstration of how to access an HTML element</h3>
>
> <p>Click the button to scale the document.</p>
>
> <button onclick="myFunction()">Try it</button>
>
> <p id="demo"></p>
>
> <script>
> function myFunction() {
> var x = document.getElementsByTagName("BODY")[0];
> x.style.transform = "scale(0.5,1.3)";
> }
> </script>
>
> </body>
> </html>
>
>
> --
> There’s a mighty big difference between good, sound reasons and reasons
> that sound good.
>
> Burton Hillis (William Vaughn, American columnist)
This seem ok to me have to test on mobiles.

function getResolution() {
dispWidth=screen.width;
dispHeight=screen.height;
} function changeResolution() {
getResolution();
//if display higher then wide "mobiles?"
if (dispWidth<dispHeight){
var tempScale=dispWidth;
dipsWidth=dispHeight;
dispHeight=tempScale;
} //rescale to display
var xScale=dispWidth/1920;
var yScale=dispHeight/1080;
//Only if scale not native
if(dispWidth!=1920 && dispHeight!=1080){
var dispScale = document.getElementsByTagName("BODY")[0];
dispScale.style.transform = "scale("+xScale*0.96+","+yScale*0.95+")";
} }
changeResolution();
</script>

Re: CSS scale transform using javascript?

<70fb9c28-1e7e-40e4-92e3-0f685eb9a72an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17330&group=comp.lang.javascript#17330

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:aed:3004:: with SMTP id 4mr7411357qte.407.1632857771122;
Tue, 28 Sep 2021 12:36:11 -0700 (PDT)
X-Received: by 2002:a9d:7284:: with SMTP id t4mr6699110otj.285.1632857770787;
Tue, 28 Sep 2021 12:36:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Tue, 28 Sep 2021 12:36:10 -0700 (PDT)
In-Reply-To: <sinagm$31t$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com>
<6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com> <0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com>
<f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com> <d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com>
<9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com> <sikj3h$9ks$1@dont-email.me>
<15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com> <sikq1q$617$1@dont-email.me>
<33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com> <simnt8$22n$2@dont-email.me>
<b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com> <sin8qe$mj2$1@dont-email.me>
<8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com> <sinagm$31t$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <70fb9c28-1e7e-40e4-92e3-0f685eb9a72an@googlegroups.com>
Subject: Re: CSS scale transform using javascript?
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Tue, 28 Sep 2021 19:36:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 59
 by: Jonas Thörnvall - Tue, 28 Sep 2021 19:36 UTC

lördag 25 september 2021 kl. 16:08:27 UTC+2 skrev The Natural Philosopher:
> On 25/09/2021 14:46, Jonas Thörnvall wrote:
> > lördag 25 september 2021 kl. 15:39:31 UTC+2 skrev The Natural Philosopher:
> >> On 25/09/2021 12:49, Jonas Thörnvall wrote:
> >>
> >>>
> >>> So far the only thing that will scale it uniformly is.
> >>>
> >>> html {
> >>> transform: scale(0.5,0.7);
> >>> }
> >>>
> >>> So maybe one should have a script that invoke different CSS files deipendent on resolution.
> >>> It seem idiotic to me, but....
> >>>
> >> var x = document.getElementsByTagName("HTML")[0];
> >>
> >> x.style.transform="scale(0.5,0.7)";
> >
> > Yeah but it doesn't work....
> >
> It does, I tested it
>
> <!DOCTYPE html>
> <html>
> <body>
>
> <h3>A demonstration of how to access an HTML element</h3>
>
> <p>Click the button to scale the document.</p>
>
> <button onclick="myFunction()">Try it</button>
>
> <p id="demo"></p>
>
> <script>
> function myFunction() {
> var x = document.getElementsByTagName("BODY")[0];
> x.style.transform = "scale(0.5,1.3)";
> }
> </script>
>
> </body>
> </html>
>
>
> --
> There’s a mighty big difference between good, sound reasons and reasons
> that sound good.
>
> Burton Hillis (William Vaughn, American columnist)
Just for fun i added sliders for scaling, but to be useful I should created another slider resolution for it "CSS" i used the midi i already had 0-127 so it isn't exactly finetuned zoomwise.
But one wonder if one could keep them locked outside "the scaling document"..

Re: CSS scale transform using javascript?

<c9aa6bce-b78b-41d4-9e6e-7a663a50cff2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17331&group=comp.lang.javascript#17331

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:ad4:436b:: with SMTP id u11mr10175634qvt.26.1632907447312;
Wed, 29 Sep 2021 02:24:07 -0700 (PDT)
X-Received: by 2002:a05:6820:3c9:: with SMTP id s9mr8894402ooj.81.1632907447046;
Wed, 29 Sep 2021 02:24:07 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Wed, 29 Sep 2021 02:24:06 -0700 (PDT)
In-Reply-To: <70fb9c28-1e7e-40e4-92e3-0f685eb9a72an@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com>
<6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com> <0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com>
<f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com> <d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com>
<9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com> <sikj3h$9ks$1@dont-email.me>
<15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com> <sikq1q$617$1@dont-email.me>
<33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com> <simnt8$22n$2@dont-email.me>
<b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com> <sin8qe$mj2$1@dont-email.me>
<8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com> <sinagm$31t$1@dont-email.me>
<70fb9c28-1e7e-40e4-92e3-0f685eb9a72an@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c9aa6bce-b78b-41d4-9e6e-7a663a50cff2n@googlegroups.com>
Subject: Re: CSS scale transform using javascript?
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Wed, 29 Sep 2021 09:24:07 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 61
 by: Jonas Thörnvall - Wed, 29 Sep 2021 09:24 UTC

tisdag 28 september 2021 kl. 21:36:15 UTC+2 skrev Jonas Thörnvall:
> lördag 25 september 2021 kl. 16:08:27 UTC+2 skrev The Natural Philosopher:
> > On 25/09/2021 14:46, Jonas Thörnvall wrote:
> > > lördag 25 september 2021 kl. 15:39:31 UTC+2 skrev The Natural Philosopher:
> > >> On 25/09/2021 12:49, Jonas Thörnvall wrote:
> > >>
> > >>>
> > >>> So far the only thing that will scale it uniformly is.
> > >>>
> > >>> html {
> > >>> transform: scale(0.5,0.7);
> > >>> }
> > >>>
> > >>> So maybe one should have a script that invoke different CSS files deipendent on resolution.
> > >>> It seem idiotic to me, but....
> > >>>
> > >> var x = document.getElementsByTagName("HTML")[0];
> > >>
> > >> x.style.transform="scale(0.5,0.7)";
> > >
> > > Yeah but it doesn't work....
> > >
> > It does, I tested it
> >
> > <!DOCTYPE html>
> > <html>
> > <body>
> >
> > <h3>A demonstration of how to access an HTML element</h3>
> >
> > <p>Click the button to scale the document.</p>
> >
> > <button onclick="myFunction()">Try it</button>
> >
> > <p id="demo"></p>
> >
> > <script>
> > function myFunction() {
> > var x = document.getElementsByTagName("BODY")[0];
> > x.style.transform = "scale(0.5,1.3)";
> > }
> > </script>
> >
> > </body>
> > </html>
> >
> >
> > --
> > There’s a mighty big difference between good, sound reasons and reasons
> > that sound good.
> >
> > Burton Hillis (William Vaughn, American columnist)
> Just for fun i added sliders for scaling, but to be useful I should created another slider resolution for it "CSS" i used the midi i already had 0-127 so it isn't exactly finetuned zoomwise.
> But one wonder if one could keep them locked outside "the scaling document".
Well locked positonwise.

Re: CSS scale transform using javascript?

<sj1gh6$gb$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17332&group=comp.lang.javascript#17332

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.lang.javascript
Subject: Re: CSS scale transform using javascript?
Date: Wed, 29 Sep 2021 11:52:21 +0100
Organization: A little, after lunch
Lines: 80
Message-ID: <sj1gh6$gb$1@dont-email.me>
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com>
<6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com>
<0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com>
<f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com>
<d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com>
<9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com>
<sikj3h$9ks$1@dont-email.me>
<15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com>
<sikq1q$617$1@dont-email.me>
<33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com>
<simnt8$22n$2@dont-email.me>
<b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com>
<sin8qe$mj2$1@dont-email.me>
<8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com>
<sinagm$31t$1@dont-email.me>
<70fb9c28-1e7e-40e4-92e3-0f685eb9a72an@googlegroups.com>
<c9aa6bce-b78b-41d4-9e6e-7a663a50cff2n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 29 Sep 2021 10:52:22 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="415c33101b52695a24df9173ff6033bb";
logging-data="523"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19vN5sqGN0QLgNM8Bz/YubnAUTunvRkl5k="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:FnP6vUnBJs0woG30TOCU7QeqlMo=
In-Reply-To: <c9aa6bce-b78b-41d4-9e6e-7a663a50cff2n@googlegroups.com>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 29 Sep 2021 10:52 UTC

On 29/09/2021 10:24, Jonas Thörnvall wrote:
> tisdag 28 september 2021 kl. 21:36:15 UTC+2 skrev Jonas Thörnvall:
>> lördag 25 september 2021 kl. 16:08:27 UTC+2 skrev The Natural Philosopher:
>>> On 25/09/2021 14:46, Jonas Thörnvall wrote:
>>>> lördag 25 september 2021 kl. 15:39:31 UTC+2 skrev The Natural Philosopher:
>>>>> On 25/09/2021 12:49, Jonas Thörnvall wrote:
>>>>>
>>>>>>
>>>>>> So far the only thing that will scale it uniformly is.
>>>>>>
>>>>>> html {
>>>>>> transform: scale(0.5,0.7);
>>>>>> }
>>>>>>
>>>>>> So maybe one should have a script that invoke different CSS files deipendent on resolution.
>>>>>> It seem idiotic to me, but....
>>>>>>
>>>>> var x = document.getElementsByTagName("HTML")[0];
>>>>>
>>>>> x.style.transform="scale(0.5,0.7)";
>>>>
>>>> Yeah but it doesn't work....
>>>>
>>> It does, I tested it
>>>
>>> <!DOCTYPE html>
>>> <html>
>>> <body>
>>>
>>> <h3>A demonstration of how to access an HTML element</h3>
>>>
>>> <p>Click the button to scale the document.</p>
>>>
>>> <button onclick="myFunction()">Try it</button>
>>>
>>> <p id="demo"></p>
>>>
>>> <script>
>>> function myFunction() {
>>> var x = document.getElementsByTagName("BODY")[0];
>>> x.style.transform = "scale(0.5,1.3)";
>>> }
>>> </script>
>>>
>>> </body>
>>> </html>
>>>
>>>
>>> --
>>> There’s a mighty big difference between good, sound reasons and reasons
>>> that sound good.
>>>
>>> Burton Hillis (William Vaughn, American columnist)
>> Just for fun i added sliders for scaling, but to be useful I should created another slider resolution for it "CSS" i used the midi i already had 0-127 so it isn't exactly finetuned zoomwise.
>> But one wonder if one could keep them locked outside "the scaling document".
> Well locked positonwise.
>
yes.
essentially you are scaling with the above code the HTML entity called
'BODY'

You could create a <div ID ="SCALEME"> inside that and scale that using

document.getElementById("SCALEME")

instead.

You need to read up on the DOM in Javascript. Eacg nested HTML object,
is a Document Object Module and can be selected by name, tagname, ID or
class. If that selects more than one, you get an array that you can loop
through.

Then everything inside the object is accessible by javascript.

--
All political activity makes complete sense once the proposition that
all government is basically a self-legalising protection racket, is
fully understood.

Re: CSS scale transform using javascript?

<2f378ccc-17c7-44e0-aa94-2e3e87a4e81cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17333&group=comp.lang.javascript#17333

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a05:6214:5cf:: with SMTP id t15mr10836895qvz.25.1632914516913;
Wed, 29 Sep 2021 04:21:56 -0700 (PDT)
X-Received: by 2002:aca:d78b:: with SMTP id o133mr7482337oig.136.1632914516630;
Wed, 29 Sep 2021 04:21:56 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Wed, 29 Sep 2021 04:21:56 -0700 (PDT)
In-Reply-To: <sj1gh6$gb$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com>
<6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com> <0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com>
<f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com> <d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com>
<9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com> <sikj3h$9ks$1@dont-email.me>
<15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com> <sikq1q$617$1@dont-email.me>
<33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com> <simnt8$22n$2@dont-email.me>
<b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com> <sin8qe$mj2$1@dont-email.me>
<8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com> <sinagm$31t$1@dont-email.me>
<70fb9c28-1e7e-40e4-92e3-0f685eb9a72an@googlegroups.com> <c9aa6bce-b78b-41d4-9e6e-7a663a50cff2n@googlegroups.com>
<sj1gh6$gb$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2f378ccc-17c7-44e0-aa94-2e3e87a4e81cn@googlegroups.com>
Subject: Re: CSS scale transform using javascript?
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Wed, 29 Sep 2021 11:21:56 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 101
 by: Jonas Thörnvall - Wed, 29 Sep 2021 11:21 UTC

onsdag 29 september 2021 kl. 12:52:30 UTC+2 skrev The Natural Philosopher:
> On 29/09/2021 10:24, Jonas Thörnvall wrote:
> > tisdag 28 september 2021 kl. 21:36:15 UTC+2 skrev Jonas Thörnvall:
> >> lördag 25 september 2021 kl. 16:08:27 UTC+2 skrev The Natural Philosopher:
> >>> On 25/09/2021 14:46, Jonas Thörnvall wrote:
> >>>> lördag 25 september 2021 kl. 15:39:31 UTC+2 skrev The Natural Philosopher:
> >>>>> On 25/09/2021 12:49, Jonas Thörnvall wrote:
> >>>>>
> >>>>>>
> >>>>>> So far the only thing that will scale it uniformly is.
> >>>>>>
> >>>>>> html {
> >>>>>> transform: scale(0.5,0.7);
> >>>>>> }
> >>>>>>
> >>>>>> So maybe one should have a script that invoke different CSS files deipendent on resolution.
> >>>>>> It seem idiotic to me, but....
> >>>>>>
> >>>>> var x = document.getElementsByTagName("HTML")[0];
> >>>>>
> >>>>> x.style.transform="scale(0.5,0.7)";
> >>>>
> >>>> Yeah but it doesn't work....
> >>>>
> >>> It does, I tested it
> >>>
> >>> <!DOCTYPE html>
> >>> <html>
> >>> <body>
> >>>
> >>> <h3>A demonstration of how to access an HTML element</h3>
> >>>
> >>> <p>Click the button to scale the document.</p>
> >>>
> >>> <button onclick="myFunction()">Try it</button>
> >>>
> >>> <p id="demo"></p>
> >>>
> >>> <script>
> >>> function myFunction() {
> >>> var x = document.getElementsByTagName("BODY")[0];
> >>> x.style.transform = "scale(0.5,1.3)";
> >>> }
> >>> </script>
> >>>
> >>> </body>
> >>> </html>
> >>>
> >>>
> >>> --
> >>> There’s a mighty big difference between good, sound reasons and reasons
> >>> that sound good.
> >>>
> >>> Burton Hillis (William Vaughn, American columnist)
> >> Just for fun i added sliders for scaling, but to be useful I should created another slider resolution for it "CSS" i used the midi i already had 0-127 so it isn't exactly finetuned zoomwise.
> >> But one wonder if one could keep them locked outside "the scaling document".
> > Well locked positonwise.
> >
> yes.
> essentially you are scaling with the above code the HTML entity called
> 'BODY'
>
> You could create a <div ID ="SCALEME"> inside that and scale that using
>
> document.getElementById("SCALEME")
>
> instead.
>
> You need to read up on the DOM in Javascript. Eacg nested HTML object,
> is a Document Object Module and can be selected by name, tagname, ID or
> class. If that selects more than one, you get an array that you can loop
> through.
>
> Then everything inside the object is accessible by javascript.
>
>
> --
> All political activity makes complete sense once the proposition that
> all government is basically a self-legalising protection racket, is
> fully understood.
i see a problem with the div tag as is, if you have a very big document with iframes it can be hard to keep track of closures. So when you try frame the region it might not frame the region you want.
That problem never occure with named closures of tags like </html>

And it is frustrating reading something like
</div>
</div>
</div>
As closure way below your actual <div id's>
What did that one close....

Re: CSS scale transform using javascript?

<c3cf01e0-284b-4594-985f-479f53254acen@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17334&group=comp.lang.javascript#17334

  copy link   Newsgroups: comp.lang.javascript
X-Received: by 2002:a37:a20a:: with SMTP id l10mr4953686qke.273.1632919390841; Wed, 29 Sep 2021 05:43:10 -0700 (PDT)
X-Received: by 2002:a05:6808:985:: with SMTP id a5mr7604129oic.38.1632919390466; Wed, 29 Sep 2021 05:43:10 -0700 (PDT)
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.dns-netz.com!news.freedyn.net!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr2.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.javascript
Date: Wed, 29 Sep 2021 05:43:10 -0700 (PDT)
In-Reply-To: <2f378ccc-17c7-44e0-aa94-2e3e87a4e81cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=84.217.164.86; posting-account=kxPkPAoAAACjJi8w0gL9bnyznPzdw9HW
NNTP-Posting-Host: 84.217.164.86
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com> <6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com> <0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com> <f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com> <d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com> <9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com> <sikj3h$9ks$1@dont-email.me> <15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com> <sikq1q$617$1@dont-email.me> <33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com> <simnt8$22n$2@dont-email.me> <b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com> <sin8qe$mj2$1@dont-email.me> <8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com> <sinagm$31t$1@dont-email.me> <70fb9c28-1e7e-40e4-92e3-0f685eb9a72an@googlegroups.com> <c9aa6bce-b78b-41d4-9e6e-7a663a50cff2n@googlegroups.com> <sj1gh6$gb$1@dont-email.me> <2f378ccc-17c7-44e0-aa94-2e3e87a4e81cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c3cf01e0-284b-4594-985f-479f53254acen@googlegroups.com>
Subject: Re: CSS scale transform using javascript?
From: jonas.thornvall@gmail.com (Jonas Thörnvall)
Injection-Date: Wed, 29 Sep 2021 12:43:10 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 109
 by: Jonas Thörnvall - Wed, 29 Sep 2021 12:43 UTC

onsdag 29 september 2021 kl. 13:22:01 UTC+2 skrev Jonas Thörnvall:
> onsdag 29 september 2021 kl. 12:52:30 UTC+2 skrev The Natural Philosopher:
> > On 29/09/2021 10:24, Jonas Thörnvall wrote:
> > > tisdag 28 september 2021 kl. 21:36:15 UTC+2 skrev Jonas Thörnvall:
> > >> lördag 25 september 2021 kl. 16:08:27 UTC+2 skrev The Natural Philosopher:
> > >>> On 25/09/2021 14:46, Jonas Thörnvall wrote:
> > >>>> lördag 25 september 2021 kl. 15:39:31 UTC+2 skrev The Natural Philosopher:
> > >>>>> On 25/09/2021 12:49, Jonas Thörnvall wrote:
> > >>>>>
> > >>>>>>
> > >>>>>> So far the only thing that will scale it uniformly is.
> > >>>>>>
> > >>>>>> html {
> > >>>>>> transform: scale(0.5,0.7);
> > >>>>>> }
> > >>>>>>
> > >>>>>> So maybe one should have a script that invoke different CSS files deipendent on resolution.
> > >>>>>> It seem idiotic to me, but....
> > >>>>>>
> > >>>>> var x = document.getElementsByTagName("HTML")[0];
> > >>>>>
> > >>>>> x.style.transform="scale(0.5,0.7)";
> > >>>>
> > >>>> Yeah but it doesn't work....
> > >>>>
> > >>> It does, I tested it
> > >>>
> > >>> <!DOCTYPE html>
> > >>> <html>
> > >>> <body>
> > >>>
> > >>> <h3>A demonstration of how to access an HTML element</h3>
> > >>>
> > >>> <p>Click the button to scale the document.</p>
> > >>>
> > >>> <button onclick="myFunction()">Try it</button>
> > >>>
> > >>> <p id="demo"></p>
> > >>>
> > >>> <script>
> > >>> function myFunction() {
> > >>> var x = document.getElementsByTagName("BODY")[0];
> > >>> x.style.transform = "scale(0.5,1.3)";
> > >>> }
> > >>> </script>
> > >>>
> > >>> </body>
> > >>> </html>
> > >>>
> > >>>
> > >>> --
> > >>> There’s a mighty big difference between good, sound reasons and reasons
> > >>> that sound good.
> > >>>
> > >>> Burton Hillis (William Vaughn, American columnist)
> > >> Just for fun i added sliders for scaling, but to be useful I should created another slider resolution for it "CSS" i used the midi i already had 0-127 so it isn't exactly finetuned zoomwise.
> > >> But one wonder if one could keep them locked outside "the scaling document".
> > > Well locked positonwise.
> > >
> > yes.
> > essentially you are scaling with the above code the HTML entity called
> > 'BODY'
> >
> > You could create a <div ID ="SCALEME"> inside that and scale that using
> >
> > document.getElementById("SCALEME")
> >
> > instead.
> >
> > You need to read up on the DOM in Javascript. Eacg nested HTML object,
> > is a Document Object Module and can be selected by name, tagname, ID or
> > class. If that selects more than one, you get an array that you can loop
> > through.
> >
> > Then everything inside the object is accessible by javascript.
> >
> >
> > --
> > All political activity makes complete sense once the proposition that
> > all government is basically a self-legalising protection racket, is
> > fully understood.
> i see a problem with the div tag as is, if you have a very big document with iframes it can be hard to keep track of closures. So when you try frame the region it might not frame the region you want.
> That problem never occure with named closures of tags like </html>
>
> And it is frustrating reading something like
> </div>
> </div>
> </div>
> As closure way below your actual <div id's>
> What did that one close....
Added scaling by scroll, will make select buttons for X, Y,LOCKED

http://jtmidi.000webhostapp.com/

Re: CSS scale transform using javascript?

<sj1rov$non$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=17335&group=comp.lang.javascript#17335

  copy link   Newsgroups: comp.lang.javascript
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.lang.javascript
Subject: Re: CSS scale transform using javascript?
Date: Wed, 29 Sep 2021 15:04:14 +0100
Organization: A little, after lunch
Lines: 37
Message-ID: <sj1rov$non$1@dont-email.me>
References: <89003e2b-ee41-478b-b44b-4b8235d8564dn@googlegroups.com>
<6489e84a-404f-43a9-a7ed-ae97b000f86dn@googlegroups.com>
<0445a89c-ccad-4689-8d7c-35d9278adfc3n@googlegroups.com>
<f4d10a40-8f9d-4669-9440-97407335f855n@googlegroups.com>
<d2d234d7-4322-46c8-889b-30d08e1f4f7en@googlegroups.com>
<9f5ef984-0a89-4bc3-97d0-7a53a67bf3f7n@googlegroups.com>
<sikj3h$9ks$1@dont-email.me>
<15c3cc53-d0bb-4da7-9fc8-e4bd551a1f50n@googlegroups.com>
<sikq1q$617$1@dont-email.me>
<33ba3132-9442-4cc3-9e3d-7b1fced6172fn@googlegroups.com>
<simnt8$22n$2@dont-email.me>
<b9d0fdb0-7b53-45ef-ba69-6963690f9654n@googlegroups.com>
<sin8qe$mj2$1@dont-email.me>
<8a8e44c8-c534-457d-a9bf-0360db51321en@googlegroups.com>
<sinagm$31t$1@dont-email.me>
<70fb9c28-1e7e-40e4-92e3-0f685eb9a72an@googlegroups.com>
<c9aa6bce-b78b-41d4-9e6e-7a663a50cff2n@googlegroups.com>
<sj1gh6$gb$1@dont-email.me>
<2f378ccc-17c7-44e0-aa94-2e3e87a4e81cn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 29 Sep 2021 14:04:15 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="415c33101b52695a24df9173ff6033bb";
logging-data="24343"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19qcyagLU5ljQWeHjQ8H5SGHNJHH+/ySv8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
Thunderbird/60.6.1
Cancel-Lock: sha1:68I2uxQJinoUN/hhlIqjwN1Ndas=
In-Reply-To: <2f378ccc-17c7-44e0-aa94-2e3e87a4e81cn@googlegroups.com>
Content-Language: en-GB
 by: The Natural Philosop - Wed, 29 Sep 2021 14:04 UTC

On 29/09/2021 12:21, Jonas Thörnvall wrote:
> i see a problem with the div tag as is, if you have a very big document with iframes it can be hard to keep track of closures. So when you try frame the region it might not frame the region you want.
> That problem never occure with named closures of tags like </html>
>
> And it is frustrating reading something like
> </div>
> </div>
> </div>
> As closure way below your actual <div id's>
> What did that one close....

If you use a decent editor to write your code, it will probably allow
you to highlight which </div> applies to which <div>
Or you can do what people have been doing for years, and indent your
nests so that the start and end of each one are at their own indent levels

<div>
<div>
</div>
</div>

Or comment them..

<div><!-- start of div1 -->
<div><!-- start of div2 -->
</div><!-- end of div2 -->
</div><!-- end of div1 -->

There are many programming conventions that have arisen precisely to
meet the problem you have elucidated.

--
A lie can travel halfway around the world while the truth is putting on
its shoes.


devel / comp.lang.javascript / Re: CSS scale transform using javascript?

Pages:12
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor