The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> how to duplicate a web page?
grguthrie
post Mar 21 2025, 12:59 PM
Post #1





Group: Members
Posts: 3
Joined: 21-March 25
Member No.: 29,405



I want to start with an existing web page, and then have the ability for users to easily customize it - in this case starting with a document reference page and then being able to adapt for other documents.
For example: https://arxiv.org/abs/2503.16416
So I opened the page in FFox, did "show source" to see all the html, and saved that.
But when I open the saved file.html version, it loses most of the formatting.
How to best do this?
And is there then a recommended easy to use tool where users could then edit in their own document summary and information?
TIA
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 21 2025, 03:24 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,803
Joined: 9-August 06
Member No.: 6



Look in the HEAD of the document.

CODE
  <link rel="stylesheet" type="text/css" media="screen" href="/static/browse/0.3.4/css/arXiv.css?v=20241206" />
  <link rel="stylesheet" type="text/css" media="print" href="/static/browse/0.3.4/css/arXiv-print.css?v=20200611" />
  <link rel="stylesheet" type="text/css" media="screen" href="/static/browse/0.3.4/css/browse_search.css" />


There's the formatting, in the CSS. If you just want to view the page with formatting applied you have two option. Either download the CSS files and edit the URLs to them in the above tags to reflect where they are on your disk. Or insert the below at the top of the HEAD section and they will load from archive.org's sever. So will the JavaScript.

CODE
<base href="https://arxiv.org/abs/2503.16416">


If you want to create your own site like that, you will need more than HTML and CSS.


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
grguthrie
post Mar 21 2025, 04:07 PM
Post #3





Group: Members
Posts: 3
Joined: 21-March 25
Member No.: 29,405



I can use the browser feature "save as WebPage" and that does also keep all the formatting - so i suppose the issue would be how to best allow users to use this as a template, and modify and update certain parts of it?
Is this a CMS issue where we would create a template with composable sections?
We would have a limited number of people creating versions of new documents from this initial template, so maybe just an editor with HTML display capabilities?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
grguthrie
post Mar 21 2025, 04:08 PM
Post #4





Group: Members
Posts: 3
Joined: 21-March 25
Member No.: 29,405



@pandy - very good- thanks, it took me a bit to figure that out - thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Mar 21 2025, 04:40 PM
Post #5


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,803
Joined: 9-August 06
Member No.: 6



I'm confused about what you want to do. Do you want to use this on the web or offline? Do you want to use it with their data or with your own?

To tell the truth, I'm confused about what the archive.org page is about too. But I'm pretty sure there's some server side action going on that you can't recreate with just HTML and CSS.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 30th April 2025 - 12:46 PM