Skip to content

MarioSenese/ShopHours

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShopHours configurator

ShopHours configurator has been implemented to enter the opening and closing times of your shop.

html5 javascript css3

Visual Studio Code NetBeans IDE Sublime Text

repo size GitHub

license

npm vesion npm size min

Install

$ npm install @mariosenese/shophours

Usage

Call external js and css files, into header:

<head>
    <script src="js/index.js" async></script>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
</head>

Insert html code in your page:

<div id="hours" >
    <fieldset>
      <legend>Shop Hours</legend>
        <div class="shops">
            <div class="h monday friday">
                <div class="morning">
                    <span class="from">
                        <input type="text" class="time" value="06:00" readonly />
                    </span>
                    <span class="to">
                        <input type="text" class="time" value="14:00" readonly />                                
                    </span>
                </div>
                <div class="afternoon">
                    <span class="from">
                        <input type="text" class="time" value="15:00" readonly />
                    </span>
                    <span class="to">
                        <input type="text" class="time" value="20:00" readonly />                                
                    </span>
                </div>
            </div>
            <div class="h saturday">
                <div class="morning">
                    <span class="from">
                        <input type="text" class="time" value="06:00" readonly />                                
                    </span>
                    <span class="to">
                        <input type="text" class="time" value="14:00" readonly />                                
                    </span>
                </div>
            </div>
        </div>
    </fieldset>
</div>

Note: It has been used normally

<input type="text" ... />

and not the classic

 <input type="time" ... />

About

ShopHours configurator has been implemented to enter the opening and closing times of your shop

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published