@mariosenese/shophours

1.0.6 • Public • Published

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" ... />

Package Sidebar

Install

npm i @mariosenese/shophours

Weekly Downloads

1

Version

1.0.6

License

MIT

Unpacked Size

25.3 kB

Total Files

6

Last publish

Collaborators

  • mariosenese