├── readme.md ├── images └── git-logo.png ├── js └── script.js ├── styles └── style.css ├── LICENSE └── index.html /readme.md: -------------------------------------------------------------------------------- 1 | Hi,we are learning Git together. 2 | Have a good time! 3 | -------------------------------------------------------------------------------- /images/git-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/geektime-geekbang/git_learning/HEAD/images/git-logo.png -------------------------------------------------------------------------------- /js/script.js: -------------------------------------------------------------------------------- 1 | var acc = document.getElementsByClassName("accordion"); 2 | var i; 3 | 4 | for (i = 0; i < acc.length; i++) { 5 | acc[i].onclick = function(){ 6 | this.classList.toggle("active"); 7 | var panel = this.nextElementSibling; 8 | if (panel.style.display === "block") { 9 | panel.style.display = "none"; 10 | } else { 11 | panel.style.display = "block"; 12 | } 13 | } 14 | } 15 | 16 | -------------------------------------------------------------------------------- /styles/style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color: orange; 3 | font-family: 'Monaco', sans-serif; 4 | color: white; 5 | } 6 | 7 | body a{ 8 | color: white; 9 | } 10 | 11 | header{ 12 | text-align: center; 13 | margin-top: 50px; 14 | } 15 | 16 | h3{ 17 | color: red; 18 | } 19 | 20 | header-img{ 21 | width: 400px; 22 | } 23 | 24 | header-words{ 25 | line-height: 10px; 26 | font-size: 50px; 27 | font-family: 'Monaco', sans-serif; 28 | margin-bottom: 75px; 29 | } 30 | 31 | section{ 32 | padding: 0 50px 0px 50px; 33 | text-align: left; 34 | } 35 | 36 | div.accordion { 37 | cursor: pointer; 38 | border: none; 39 | outline: none; 40 | } 41 | 42 | div.accordion.active, div.accordion:hover { 43 | background-color: white; 44 | color: #1D2031; 45 | } 46 | 47 | div.panel { 48 | padding: 0 18px 0 0; 49 | display: none; 50 | } 51 | 52 | footer{ 53 | right: 0; 54 | bottom: 0; 55 | position: relative; 56 | padding: 10px 1rem 10px 0; 57 | margin-top: 50px; 58 | font-size: 0.7em; 59 | text-align: right; 60 | } 61 | 62 | footer p{ 63 | margin-bottom:0; 64 | } 65 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 git201901 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |
10 |