├── .gitignore ├── README.md ├── css └── style.css ├── img ├── favicon-dot-animated.gif ├── favicon-dot.gif └── favicon.gif ├── index.html ├── index2.html └── index3.html /.gitignore: -------------------------------------------------------------------------------- 1 | *.codekit 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ### Tuts+ Tutorial: How to Display Update Notifications in the Browser Tab 2 | #### Instructor: Thoriq Firdaus 3 | 4 | In this tutorial, we are going to build a form of user feedback, making use of the browser tab as a medium for notifying users of updates. Let’s see how it’s done. 5 | 6 | Source files for the Tuts+ tutorial: [How to Display Update Notifications in the Browser Tab](http://webdesign.tutsplus.com/tutorials/how-use-the-browser-tab-to-display-update-notifications--cms-23458) 7 | 8 | **Available on Tuts+ March 2015** 9 | 10 | [View the demo](http://tutsplus.github.io/tab-notification) 11 | -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | html { 2 | box-sizing: border-box; 3 | } 4 | *, *:before, *:after { 5 | box-sizing: inherit; 6 | } 7 | body { 8 | background-color: #34495E; 9 | } 10 | 11 | .container { 12 | width: 600px; 13 | margin-right: auto; 14 | margin-left: auto; 15 | text-align: center; 16 | margin-top: 200px; 17 | } 18 | .demo-description { 19 | color: #dae1e7; 20 | font-family: 'Merriweather', serif; 21 | font-weight: 300; 22 | font-size: 1.6em; 23 | margin-bottom: 30px; 24 | } 25 | .demo-description p { 26 | margin-bottom: 0; 27 | } 28 | .demo-description small { 29 | font-size: 60%; 30 | color: #9dafbf; 31 | } 32 | 33 | .nav-list { 34 | padding: 0; 35 | margin: 0; 36 | list-style-type: none; 37 | } 38 | .nav-item { 39 | display: inline-block; 40 | padding: 0 10px; 41 | } 42 | .nav-item a { 43 | color: #587590; 44 | font-family: 'Nunito', 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; 45 | text-decoration: none; 46 | text-transform: uppercase; 47 | font-size: 0.8em; 48 | -webkit-transition: all 0.3s ease-out; 49 | -moz-transition: all 0.3s ease-out; 50 | -o-transition: all 0.3s ease-out; 51 | transition: all 0.3s ease-out; 52 | } 53 | 54 | .nav-item a:hover { 55 | color: #fff; 56 | } 57 | 58 | .btn-group { 59 | text-align: center; 60 | margin-right: auto; 61 | margin-left: auto; 62 | margin-top: 10px; 63 | } 64 | 65 | .btn { 66 | background-color: #dd2c00; 67 | border: none; 68 | padding: 15px 50px; 69 | font-weight: 600; 70 | text-transform: uppercase; 71 | cursor: pointer; 72 | font-size: 14px; 73 | color: #fff0e2; 74 | font-family: Nunito, 'Trebuchet MS', 'Lucida Grande', 'Lucida Sans Unicode', 'Lucida Sans', Tahoma, sans-serif; 75 | border-radius: 50px; 76 | font-weight: 400; 77 | border: 1px solid transparent; 78 | -webkit-transition: all 0.3s ease-out; 79 | -moz-transition: all 0.3s ease-out; 80 | -o-transition: all 0.3s ease-out; 81 | transition: all 0.3s ease-out; 82 | } 83 | .btn:hover, 84 | .btn:active { 85 | outline: 0; 86 | background-color: #ba2b00; 87 | } 88 | 89 | .icon { 90 | margin-right: 8px; 91 | } -------------------------------------------------------------------------------- /img/favicon-dot-animated.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/tab-notification/ef20872c50b36a914a8f5b3e4544d71183491bd5/img/favicon-dot-animated.gif -------------------------------------------------------------------------------- /img/favicon-dot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/tab-notification/ef20872c50b36a914a8f5b3e4544d71183491bd5/img/favicon-dot.gif -------------------------------------------------------------------------------- /img/favicon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tutsplus/tab-notification/ef20872c50b36a914a8f5b3e4544d71183491bd5/img/favicon.gif -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |Inserts the number of update in the title.
32 | The number will increase in every 1 second. 33 |Display the alternate favicon variant.
32 | The favicon will change within 3 second. 33 |Using Favico.js
35 | Click the following Stop button to stop the number incrementing. 36 |