Style fix and scripted advanced option visibility
This commit is contained in:
		
							
								
								
									
										10
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										10
									
								
								.idea/workspace.xml
									
									
									
										generated
									
									
									
								
							| @@ -20,9 +20,10 @@ | |||||||
|   </component> |   </component> | ||||||
|   <component name="ChangeListManager"> |   <component name="ChangeListManager"> | ||||||
|     <list default="true" id="458cde88-df3d-44bc-9d57-a33823e2f1a6" name="Default Changelist" comment=""> |     <list default="true" id="458cde88-df3d-44bc-9d57-a33823e2f1a6" name="Default Changelist" comment=""> | ||||||
|       <change afterPath="$PROJECT_DIR$/src/main/resources/templates/design.css" afterDir="false" /> |       <change afterPath="$PROJECT_DIR$/src/main/resources/static/js/design.js" afterDir="false" /> | ||||||
|       <change afterPath="$PROJECT_DIR$/src/main/resources/templates/design.html" afterDir="false" /> |  | ||||||
|       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> |       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> | ||||||
|  |       <change beforePath="$PROJECT_DIR$/src/main/resources/templates/design.css" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/static/css/design.css" afterDir="false" /> | ||||||
|  |       <change beforePath="$PROJECT_DIR$/src/main/resources/templates/design.html" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/resources/templates/design.html" afterDir="false" /> | ||||||
|     </list> |     </list> | ||||||
|     <option name="SHOW_DIALOG" value="false" /> |     <option name="SHOW_DIALOG" value="false" /> | ||||||
|     <option name="HIGHLIGHT_CONFLICTS" value="true" /> |     <option name="HIGHLIGHT_CONFLICTS" value="true" /> | ||||||
| @@ -93,11 +94,11 @@ | |||||||
|       <recent name="com.release11.klaus.repository" /> |       <recent name="com.release11.klaus.repository" /> | ||||||
|     </key> |     </key> | ||||||
|     <key name="MoveFile.RECENT_KEYS"> |     <key name="MoveFile.RECENT_KEYS"> | ||||||
|  |       <recent name="C:\Users\Gabriel Modzelewski\.phabricator\mockedservices\src\main\resources\static\css" /> | ||||||
|       <recent name="C:\Users\Gabriel Modzelewski\.phabricator\mockedservices\src\main\resources\templates" /> |       <recent name="C:\Users\Gabriel Modzelewski\.phabricator\mockedservices\src\main\resources\templates" /> | ||||||
|       <recent name="D:\phabricator\mockedservices-master" /> |       <recent name="D:\phabricator\mockedservices-master" /> | ||||||
|       <recent name="D:\phabricator\mockedservices" /> |       <recent name="D:\phabricator\mockedservices" /> | ||||||
|       <recent name="D:\phabricator\mockedservices\src" /> |       <recent name="D:\phabricator\mockedservices\src" /> | ||||||
|       <recent name="D:\phabricator\mockedservices\src\main\java\com\release11\klaus\docker" /> |  | ||||||
|     </key> |     </key> | ||||||
|     <key name="CopyFile.RECENT_KEYS"> |     <key name="CopyFile.RECENT_KEYS"> | ||||||
|       <recent name="D:\phabricator\mockedservices-master\src" /> |       <recent name="D:\phabricator\mockedservices-master\src" /> | ||||||
| @@ -297,7 +298,8 @@ | |||||||
|       <workItem from="1609858872909" duration="2771000" /> |       <workItem from="1609858872909" duration="2771000" /> | ||||||
|       <workItem from="1610359988935" duration="8484000" /> |       <workItem from="1610359988935" duration="8484000" /> | ||||||
|       <workItem from="1610621157443" duration="1615000" /> |       <workItem from="1610621157443" duration="1615000" /> | ||||||
|       <workItem from="1610971272685" duration="6963000" /> |       <workItem from="1610971272685" duration="11907000" /> | ||||||
|  |       <workItem from="1610986449789" duration="2572000" /> | ||||||
|     </task> |     </task> | ||||||
|     <task id="LOCAL-00077" summary="testing jenkins docker"> |     <task id="LOCAL-00077" summary="testing jenkins docker"> | ||||||
|       <created>1601453886631</created> |       <created>1601453886631</created> | ||||||
|   | |||||||
							
								
								
									
										182
									
								
								src/main/resources/static/css/design.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										182
									
								
								src/main/resources/static/css/design.css
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,182 @@ | |||||||
|  | #container { | ||||||
|  |     width: 950px; | ||||||
|  |     margin-left: auto; | ||||||
|  |     margin-right: auto; | ||||||
|  |     min-height: 1900px; | ||||||
|  |     background: white; | ||||||
|  |     font-family: 'Josefin Slab', serif; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .borderStyle { | ||||||
|  |     border: 3px solid lightgray; | ||||||
|  |     border-radius: 5px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #toolName { | ||||||
|  |     width: 850px; | ||||||
|  |     font-weight: 400; | ||||||
|  |     font-size: 72px; | ||||||
|  |     text-align: center; | ||||||
|  |     padding: 50px; | ||||||
|  |     font-family: 'Acme', sans-serif; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .articleHead { | ||||||
|  |     font-size: 48px; | ||||||
|  |     font-weight: 400; | ||||||
|  |     height: 70px; | ||||||
|  |     padding: 10px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #itemData { | ||||||
|  |     min-height: 1736px; | ||||||
|  |     float: left; | ||||||
|  |     width: 720px; | ||||||
|  |     font-size: 24px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #optional { | ||||||
|  |     width: 100%; | ||||||
|  |     font-size: 24px; | ||||||
|  |     cursor: pointer; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #optional:hover { | ||||||
|  |     color: orange; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #advanced { | ||||||
|  |     width: 100%; | ||||||
|  |     margin-bottom: 50px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #advancedMenu { | ||||||
|  |     margin-top: 30px; | ||||||
|  |     width: 720px; | ||||||
|  |     height: 50px; | ||||||
|  |     border-bottom: 1px solid lightgray; | ||||||
|  |  | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .advancedMenuTab { | ||||||
|  |     width: 340px; | ||||||
|  |     height: 30px; | ||||||
|  |     float: left; | ||||||
|  |     text-align: center; | ||||||
|  |     padding: 10px; | ||||||
|  |     font-size: 24px; | ||||||
|  |     cursor: pointer; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .advancedMenuTab:hover { | ||||||
|  |     font-weight: 700; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .advancedMenuTabSelected { | ||||||
|  |     width: 340px; | ||||||
|  |     height: 30px; | ||||||
|  |     float: left; | ||||||
|  |     text-align: center; | ||||||
|  |     padding: 10px; | ||||||
|  |     font-size: 24px; | ||||||
|  |     background: gray; | ||||||
|  |     color: white; | ||||||
|  |     font-weight: 700; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #functionBar { | ||||||
|  |     width: 100%; | ||||||
|  |     margin-top: 50px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .functionBarButton { | ||||||
|  |     width: 200px; | ||||||
|  |     float: left; | ||||||
|  |     margin-left: 10px; | ||||||
|  |     margin-right: 10px; | ||||||
|  |     background: gray; | ||||||
|  |     color: white; | ||||||
|  |     font-size: 24px; | ||||||
|  |     padding: 12px; | ||||||
|  |     cursor: pointer; | ||||||
|  |     border-radius: 15px; | ||||||
|  |     text-align: center; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .functionBarButton:hover { | ||||||
|  |     float: left; | ||||||
|  |     margin-left: 10px; | ||||||
|  |     margin-right: 10px; | ||||||
|  |     background: lightgray; | ||||||
|  |     color: white; | ||||||
|  |     font-size: 24px; | ||||||
|  |     padding: 12px; | ||||||
|  |     cursor: pointer; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #link { | ||||||
|  |     width: 750px; | ||||||
|  |     margin-bottom: 40px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #messageLink { | ||||||
|  |     width: 630px; | ||||||
|  |     padding: 10px; | ||||||
|  |     background: lightgray; | ||||||
|  |     border: 1px solid gray; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .fieldDefault { | ||||||
|  |     width: 300px; | ||||||
|  |     height: 30px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .fieldText { | ||||||
|  |     width: 630px; | ||||||
|  |     padding: 10px; | ||||||
|  |     height: 296px; | ||||||
|  |     resize: none; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | #selectMenu { | ||||||
|  |     min-height: 1736px; | ||||||
|  |     float: left; | ||||||
|  |     width: 200px; | ||||||
|  |     margin-right: 30px; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .label { | ||||||
|  |     margin-top: 15px; | ||||||
|  |     margin-bottom: 0px; | ||||||
|  |     font-size: 12px; | ||||||
|  |     color: lightgray; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .menuItem { | ||||||
|  |     width: 174px; | ||||||
|  |     padding: 13px; | ||||||
|  |     font-size: 24px; | ||||||
|  |     text-align: center; | ||||||
|  |     margin-bottom: 5px; | ||||||
|  |     border: 1px solid lightgray; | ||||||
|  |     cursor: pointer; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .menuItem:hover { | ||||||
|  |     background: lightgray; | ||||||
|  |     color: white; | ||||||
|  |     font-weight: 400; | ||||||
|  | } | ||||||
|  |  | ||||||
|  | .menuItemSelected { | ||||||
|  |     width: 174px; | ||||||
|  |     padding: 13px; | ||||||
|  |     font-size: 24px; | ||||||
|  |     text-align: center; | ||||||
|  |     margin-bottom: 5px; | ||||||
|  |     border: 1px solid lightgray; | ||||||
|  |     background: gray; | ||||||
|  |     color: white; | ||||||
|  |     font-weight: 400; | ||||||
|  | } | ||||||
|  |  | ||||||
							
								
								
									
										17
									
								
								src/main/resources/static/js/design.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/main/resources/static/js/design.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,17 @@ | |||||||
|  | var advancedVisibility = false; | ||||||
|  | var selectMenu = $("#selectMenuContent"); | ||||||
|  | var advancedTab = $("#advanced"); | ||||||
|  | function changeAdvancedVisibility(){ | ||||||
|  |     if(advancedVisibility){ | ||||||
|  |         selectMenu.css('display', 'none'); | ||||||
|  |         advancedTab.css('display', 'none'); | ||||||
|  |         advancedVisibility = false; | ||||||
|  |     } | ||||||
|  |     else { | ||||||
|  |         selectMenu.css('display', 'block'); | ||||||
|  |         advancedTab.css('display', 'block'); | ||||||
|  |         advancedVisibility = true; | ||||||
|  |     } | ||||||
|  | } | ||||||
|  |  | ||||||
|  | document.getElementById("optional").addEventListener("click", changeAdvancedVisibility); | ||||||
| @@ -1,67 +0,0 @@ | |||||||
| #container { |  | ||||||
|     width: 950px; |  | ||||||
|     margin-left: auto; |  | ||||||
|     margin-right: auto; |  | ||||||
|     min-height: 1900px; |  | ||||||
|     background: white; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #toolName { |  | ||||||
|     width: 850px; |  | ||||||
|     font-weight: 400; |  | ||||||
|     font-size: 64px; |  | ||||||
|     text-align: center; |  | ||||||
|     padding: 50px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #itemData { |  | ||||||
|     min-height: 1736px; |  | ||||||
|     float: left; |  | ||||||
|     width: 750px; |  | ||||||
|     font-size: 24px; |  | ||||||
|  |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #link { |  | ||||||
|     width: 750px; |  | ||||||
|     margin-bottom: 40px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #messageLink { |  | ||||||
|     width: 680px; |  | ||||||
|     padding: 10px; |  | ||||||
|     background: lightgray; |  | ||||||
|     border: 1px solid gray; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .fieldDefault { |  | ||||||
|     width: 100px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .fieldText { |  | ||||||
|     width: 500px; |  | ||||||
|     height: 296px; |  | ||||||
|     resize: none; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| #selectMenu { |  | ||||||
|     min-height: 1736px; |  | ||||||
|     float: left; |  | ||||||
|     width: 200px; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .label { |  | ||||||
|     margin-bottom: 0px; |  | ||||||
|     font-size: 12px; |  | ||||||
|     color: lightgray; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .menuItem { |  | ||||||
|     width: 174px; |  | ||||||
|     padding: 13px; |  | ||||||
|     font-size: 24px; |  | ||||||
|     text-align: center; |  | ||||||
|     margin-bottom: 5px; |  | ||||||
|     border: 1px solid lightgray; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| @@ -3,46 +3,66 @@ | |||||||
| <head> | <head> | ||||||
|     <title>R11 MockedServices</title> |     <title>R11 MockedServices</title> | ||||||
|     <meta charset="utf-8"> |     <meta charset="utf-8"> | ||||||
|     <link rel="stylesheet" href="design.css" type="text/css"> |     <link rel="stylesheet" href="../static/css/design.css" type="text/css"> | ||||||
|  |     <link rel="preconnect" href="https://fonts.gstatic.com"> | ||||||
|  |     <link href="https://fonts.googleapis.com/css2?family=Acme&family=Josefin+Slab:wght@500&display=swap" rel="stylesheet"> | ||||||
|  |     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||||||
| </head> | </head> | ||||||
| <body> | <body> | ||||||
|     <div id="container"> |     <div id="container"> | ||||||
|         <div id="toolName">Mocked Service</div> |         <div id="toolName">Mocked Service</div> | ||||||
|  |         <div id="selectMenu"> | ||||||
|  |             <div id="selectMenuContent" style="display: none;"> | ||||||
|  |                 <div id="selectMenuHead" class="articleHead">List</div> | ||||||
|  |                 <div class="menuItemSelected">Item</div> | ||||||
|  |                 <div class="menuItem">Item</div> | ||||||
|  |                 <div class="menuItem">Item</div> | ||||||
|  |                 <div class="menuItem">Item</div> | ||||||
|  |                 <div class="menuItem">Item</div> | ||||||
|  |                 <div class="menuItem">Item</div> | ||||||
|  |             </div> | ||||||
|  |  | ||||||
|  |         </div> | ||||||
|         <div id="itemData"> |         <div id="itemData"> | ||||||
|  |             <div id="itemDataHead" class="articleHead">Your message</div> | ||||||
|             <div id="link"> |             <div id="link"> | ||||||
|                 <p class="label">Your link</p> |                 <p class="label">Your link</p> | ||||||
|                 <div id="messageLink"> |                 <div id="messageLink" class="borderStyle"> | ||||||
|                     https://www.release11.com/tools/mock/1238715-hjdf7/1 |                     https://www.release11.com/tools/mock/1238715-hjdf7/1 | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|             <div id="msgBody"> |             <div id="msgBody"> | ||||||
|                 <div id="typeSelection"> |                 <div id="typeSelection"> | ||||||
|                     <p class="label">Content Type</p> |                     <p class="label">Content Type</p> | ||||||
|                     <select id="typeSelector" class="fieldDefault"> |                     <select id="typeSelector" class="fieldDefault borderStyle"> | ||||||
|                         <option value="text/xml">text/xml</option> |                         <option value="text/xml">text/xml</option> | ||||||
|                         <option value="application/json">application/json</option> |                         <option value="application/json">application/json</option> | ||||||
|                     </select> |                     </select> | ||||||
|                 </div> |                 </div> | ||||||
|                 <div id="bodyEdition"> |                 <div id="bodyEdition"> | ||||||
|                     <p class="label">Body:</p> |                     <p class="label">Body:</p> | ||||||
|                     <textarea type="text" id="bodyEditor" class="fieldText"><Hello>There!</Hello> |                     <textarea type="text" id="bodyEditor" class="fieldText borderStyle"><Hello>There!</Hello> | ||||||
|                     </textarea> |                     </textarea> | ||||||
|                 </div> |                 </div> | ||||||
|             </div> |             </div> | ||||||
|             <div id="headers" style="display:none;"></div> |             <div id="optional">> show/hide advanced settings</div> | ||||||
|             <div id="history" style="display:none;"></div> |             <div id="advanced" style="display: none;"> | ||||||
|         </div> |                 <div id="advancedMenu"> | ||||||
|         <div id="selectMenu"> |                     <div class="advancedMenuTabSelected">Headers</div> | ||||||
|             <div class="menuItem">Item</div> |                     <div class="advancedMenuTab">History</div> | ||||||
|             <div class="menuItem">Item</div> |                 </div> | ||||||
|             <div class="menuItem">Item</div> |                 <div id="headers" style="display:none;"></div> | ||||||
|             <div class="menuItem">Item</div> |                 <div id="history" style="display:none;"></div> | ||||||
|             <div class="menuItem">Item</div> |             </div> | ||||||
|             <div class="menuItem">Item</div> |             <div id="functionBar"> | ||||||
|  |                 <button type="submit" class="functionBarButton">Save</button> | ||||||
|  |                 <div style="clear: both;"></div> | ||||||
|  |             </div> | ||||||
|         </div> |         </div> | ||||||
|         <div style="clear:both;"></div> |         <div style="clear:both;"></div> | ||||||
|  |  | ||||||
|  |  | ||||||
|     </div> |     </div> | ||||||
|  |     <script type="text/javascript" src="../static/js/design.js"></script> | ||||||
| </body> | </body> | ||||||
| </html> | </html> | ||||||
		Reference in New Issue
	
	Block a user