Changeset 3690
- Timestamp:
- 07/03/07 02:50:08 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plug-Ins/Web Interface/Resources/iphone/index.html
r3684 r3690 4 4 <title>Colloquy</title> 5 5 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 6 <meta name="viewport" content="width=320, initial-scale=1.0, user-scalable=no">6 <meta name="viewport" content="width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> 7 7 <link rel="icon" href="../smallIcon.png" type="image/png" /> 8 8 <link rel="stylesheet" type="text/css" href="iphone.css" encoding="utf-8"> trunk/Plug-Ins/Web Interface/Resources/iphone/iphone.css
r3689 r3690 2 2 margin: 0; 3 3 padding: 0; 4 width: 320px;5 4 height: 416px; 6 5 font-family: Helvetica; … … 8 7 cursor: default; 9 8 -webkit-text-size-adjust: none; 9 } 10 11 body[orient="landscape"], body[orient="landscape"] .colloquy-members { 12 height: 268px; 13 } 14 15 body[orient="landscape"] #colloquies, body[orient="landscape"] .colloquy-panel, 16 body[orient="landscape"] .colloquy-panel-transcript, body[orient="landscape"] .colloquy-member-list { 17 height: 224px; 18 } 19 20 body[orient="landscape"] .colloquy-panel-input { 21 display: none; 10 22 } 11 23 … … 118 130 position: absolute; 119 131 width: 100%; 120 }121 122 #main-title {123 132 top: 0; 124 133 left: 0; 125 } 126 127 #colloquy-title { 128 display: none; 129 opacity: 0; 130 top: 0; 131 left: 200px; 132 text-align: left; 133 -webkit-box-sizing: border-box; 134 box-sizing: border-box; 135 padding-left: 125px; 136 padding-right: 45px; 134 -webkit-box-sizing: border-box; 135 box-sizing: border-box; 137 136 white-space: nowrap; 138 137 overflow: hidden; … … 140 139 } 141 140 141 #colloquy-title { 142 display: none; 143 opacity: 0; 144 } 145 142 146 #colloquies { 143 147 position: relative; 144 148 left: 0; 145 width: 320px;149 width: 100%; 146 150 height: 372px; 147 151 overflow: auto; … … 151 155 position: absolute; 152 156 top: 44px; 153 left: 320px;154 width: 320px;157 left: 100%; 158 width: 100%; 155 159 height: 372px; 156 160 background-color: gray; … … 160 164 .colloquy-panel-transcript { 161 165 background-color: white; 162 width: 100%;163 166 height: 335px; 164 167 overflow: auto; … … 168 171 white-space: nowrap; 169 172 height: 38px; 170 width: 100%;171 173 background-color: rgb(66%, 66%, 66%); 172 174 background-image: url(images/gradientHighlight.png); … … 203 205 top: 416px; 204 206 left: 0; 205 width: 320px;207 width: 100%; 206 208 height: 417px; 207 209 background-color: white; … … 211 213 212 214 .colloquy-members-title { 213 text-align: right; 214 -webkit-box-sizing: border-box; 215 box-sizing: border-box; 216 margin-left: 10px; 217 margin-right: 70px; 215 -webkit-box-sizing: border-box; 216 box-sizing: border-box; 218 217 white-space: nowrap; 219 218 overflow: hidden; … … 222 221 223 222 .colloquy-member-list { 224 width: 100%;225 223 height: 372px; 226 224 overflow: auto; … … 362 360 .message-wrapper.highlight { 363 361 background-color: rgb(204, 255, 102); 364 background-image: url( http://10.0.1.3:6667/iphone/images/gradientHighlight.png);362 background-image: url(images/gradientHighlight.png); 365 363 background-repeat: repeat-x; 366 364 } … … 432 430 433 431 .colloquy-member-list .member.server.operator:before { 434 content: url( /resources/admin.png);432 content: url(/resources/admin.png); 435 433 } 436 434 437 435 .colloquy-member-list .member.operator:before { 438 content: url( /resources/op.png);436 content: url(/resources/op.png); 439 437 } 440 438 441 439 .colloquy-member-list .member.administrator:before { 442 content: url( /resources/super-op.png);440 content: url(/resources/super-op.png); 443 441 } 444 442 445 443 .colloquy-member-list .member.founder:before { 446 content: url( /resources/founder.png);444 content: url(/resources/founder.png); 447 445 } 448 446 449 447 .colloquy-member-list .member.half.operator:before { 450 content: url( /resources/half-op.png);448 content: url(/resources/half-op.png); 451 449 } 452 450 453 451 .colloquy-member-list .member.voice:before { 454 content: url( /resources/voice.png);455 } 452 content: url(/resources/voice.png); 453 } trunk/Plug-Ins/Web Interface/Resources/iphone/iphone.js
r3689 r3690 20 20 // pan to the bottom, hides the location bar 21 21 setTimeout(function() { window.scrollTo(0, 1) }, 100); 22 23 setInterval(Colloquy.updateLayout, 400); 22 24 23 25 new Ajax.Request( "/command/setup?overrideStyle=info.colloquy.style.xml&uinque=" + Math.round(Math.random() * 1000000), { … … 42 44 window.addEventListener( "beforeunload", function(event) { Colloquy.teardown(event) }, false ); 43 45 window.addEventListener( "unload", function(event) { Colloquy.teardown(event) }, false ); 46 } 47 48 Colloquy.updateLayout = function() 49 { 50 if (window.innerWidth !== Colloquy.currentWidth) { 51 Colloquy.currentWidth = window.innerWidth; 52 53 var orient = Colloquy.currentWidth == 320 ? "profile" : "landscape"; 54 document.body.setAttribute("orient", orient); 55 56 // pan to the bottom, hides the location bar 57 window.scrollTo(0, 1); 58 } 44 59 } 45 60 … … 89 104 Colloquy.animatingMenu = true; 90 105 106 Colloquy.joinElement.style.display = null; 107 Colloquy.mainTitleElement.style.display = null; 108 91 109 var animations = [{element: this.backElement, end: {left: 120, opacity: 0}}, 92 110 {element: this.joinElement, end: {opacity: 1}}, {element: this.membersElement, end: {opacity: 0}}, 93 {element: this.colloquyTitleElement, end: {left: 200, opacity: 0}},111 {element: this.colloquyTitleElement, end: {left: document.body.offsetWidth / 2, opacity: 0}}, 94 112 {element: this.mainTitleElement, end: {left: 0, top: 0, "font-size": 20, "line-height": 42}}, 95 {element: this.colloquiesElement, end: {left: 0}}, {element: ChatController.activePanel.panelElement, end: {left: 320}}]; 96 97 Colloquy.joinElement.style.display = null; 98 Colloquy.mainTitleElement.style.display = null; 113 {element: this.colloquiesElement, end: {left: 0}}, {element: ChatController.activePanel.panelElement, end: {left: document.body.offsetWidth}}]; 99 114 100 115 var panel = this; … … 358 373 Colloquy.animatingMenu = true; 359 374 360 var animations = [{element: Colloquy.backElement, end: {left: 6, opacity: 1}},361 {element: Colloquy.joinElement, end: {opacity: 0}},362 {element: Colloquy.colloquyTitleElement, end: {left: 0, opacity: 1}},363 {element: Colloquy.mainTitleElement, end: {left: -110, top: 6, "font-size": 12, "line-height": 28}},364 {element: Colloquy.colloquiesElement, end: {left: -321}}, {element: this.panelElement, end: {left: 0}}];365 366 if (this.type == "JVChatRoomPanel")367 animations.push({element: Colloquy.membersElement, end: {opacity: 1}});368 369 375 this.panelElement.style.display = "block"; 370 376 Colloquy.backElement.style.display = "block"; 371 377 Colloquy.colloquyTitleElement.style.display = "block"; 372 378 Colloquy.membersElement.style.display = "block"; 379 380 var animations = [{element: Colloquy.backElement, end: {left: 6, opacity: 1}}, 381 {element: Colloquy.joinElement, end: {opacity: 0}}, 382 {element: Colloquy.colloquyTitleElement, end: {left: 0, opacity: 1}}, 383 {element: Colloquy.mainTitleElement, end: {left: (-document.body.offsetWidth / 2) + (Colloquy.backElement.offsetWidth / 2), top: 6, "font-size": 12, "line-height": 28}}, 384 {element: Colloquy.colloquiesElement, end: {left: -document.body.offsetWidth - 1}}, {element: this.panelElement, end: {left: 0}}]; 385 386 if (this.type == "JVChatRoomPanel") 387 animations.push({element: Colloquy.membersElement, end: {opacity: 1}}); 373 388 374 389 if (this.wasScrolledNearBottom) … … 734 749 this.showingMembers = true; 735 750 751 this.membersElement.style.display = "block"; 752 736 753 var animations = [{element: this.membersElement, end: {top: 0}}]; 737 738 this.membersElement.style.display = "block";739 754 740 755 Colloquy.animateStyle(animations, (event.shiftKey ? 2500 : 250)); … … 745 760 return; 746 761 747 var animations = [{element: this.membersElement, end: {top: 416}}];748 749 762 this.membersElement.style.display = "block"; 763 764 var animations = [{element: this.membersElement, end: {top: document.body.offsetHeight}}]; 750 765 751 766 var panel = this;
