GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Enesklmc/duplicate-html: Duplicate Html components with one line html comment.

BranchesTags
Open more actions menu

Latest commit

 

History

23 Commits
23 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE
LICENSE
 
 
README.md
README.md
 
 
duplicate-html.js
duplicate-html.js
 
 

Repository files navigation

Duplicate HTML

Duplicate Html components with one line of Html comment instead of Copy Paste.

Benefits:

  • Avoid long lines of code
  • Edit cloned elements at the same time

Use of

First, include the duplicate-html.js file. <script src="duplicate-html.js"></script>

Then, put Html comment <!-- duplicate.X --> ( X is the amount of Copies ) above the item you want to Duplicate.

<div class="container my-5">
	<div class="row">
		<!-- duplicate.21 -->
		<div class="col-12 col-md-6 col-xl-4 p-3">
			<div class="media song-media p-3 border rounded justify-content-center align-items-center">
				<div class="media-body pr-2">
					<!-- duplicate.2 -->
					<span>Hello my friend, Welcome</span>
				</div>
				<img src="fire.jpg">
			</div>
		</div>
	</div>
</div>

Screenshot

About

Duplicate Html components with one line html comment.

Topics

clone-htmlclonerduplicate-htmlduplicate-html-componentsduplicate-html-with-commentduplicatorjavascript

Resources

Readme
GPL-3.0 license
Activity

Stars

1 star

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.