Advertisement
Guest User

Untitled

a guest
Sep 15th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.53 KB | None | 0 0
  1. import time
  2. import os, signal
  3.  
  4. #Username = '_'
  5.  
  6. A = '''
  7.  
  8. <!DOCTYPE html> is the declaration tag for a standard HTML
  9. document. This is used to tell the browser what kind of HTML document
  10. it is.
  11.  
  12. '''
  13. a = '''
  14.  
  15. <p> This tag defines a PARAGRAPH. These are highly customisable
  16. in CSS, and can be used in any HTML version. There are variations
  17. of this tag, such as:
  18.  
  19. <p1>
  20. <p2>
  21. <p3>
  22. <p4>
  23. <p5>
  24. <p6>
  25.  
  26. and so on..
  27.  
  28. '''
  29. B = '''
  30.  
  31. <h> This tag defines a HEADER. These, like PARAGRAPHS (see <p>),
  32. are highly custonizable in CSS, and, like PARAGRAPHS, can be used
  33. in any HTML version. There are variations of this tag, such as:
  34.  
  35. <h1>
  36. <h2>
  37. <h3>
  38. <h4>
  39. <h5>
  40. <h6>
  41.  
  42. and so on..
  43.  
  44. '''
  45. b = '''
  46.  
  47. <a> This tag defines a HYPERLINK. This can be used to turn ANY block
  48. or peice of text into a clickable link. This has a variety of uses, such as:
  49.  
  50. Redirection
  51. Buttons
  52. Drop down menus
  53. Navigations bars
  54.  
  55. and many more.
  56.  
  57. A hyperlink's syntax is as shows:
  58.  
  59. <a href = "www.LINK.com" target = "(_blank, _parent, _self, and _top are
  60. your options)" type = "(specify the type of linked document.)"></a>
  61.  
  62. The closing tag is nessesary for this to work with your given parameters.
  63.  
  64. '''
  65. C = '''
  66.  
  67. <div> This tag defines a DIVIDED BLOCK where you can store content,
  68. such as pictures, videos, buttons, text, and just about anything you can
  69. think of. This is mainly used for containing things such as:
  70.  
  71. Navigation bars
  72. Buttons
  73. The entire page (Formally known as "Wrapper")
  74. ETC.
  75.  
  76. This DIV's syntax is as shows:
  77.  
  78. <div class = "(calls a certain CSS class)"></div>
  79.  
  80. The closing tag is nessesary for this to work with your given parameters.
  81.  
  82. '''
  83. c = '''
  84.  
  85. <link> This tag will LINK (a) CSS file(s) to your HTML document. You can
  86. LINK multiple CSS files to a single HTML document. You can LINK files
  87. from Google, as well as your own .css files.
  88.  
  89. The LINK's syntax is as shows:
  90.  
  91. <link href = "FILENAME.css (OR) www.LINK.com" rel = "Stylesheet" type =
  92. "text/css">
  93.  
  94. '''
  95.  
  96. print("This tool was made to help programmers, like myself,")
  97. print("with HTML tags. It takes your input, say you typed")
  98. print("<div>, it would give you an accurate description of")
  99. print("that tag and a list of its uses.")
  100. print("")
  101. print("Guest users please login as 'Guest'")
  102. print("")
  103. print("This tool was made by Chase Barnes")
  104. print("@Copyright 2017")
  105. print("")
  106. print("(Remember, type BASE tags -<p>- ONLY)")
  107. print("")
  108.  
  109. while True:
  110. Username = input("Username: ")
  111. if Username == 'Guest':
  112. Username = 'Guest'
  113. break
  114. elif Username == '/admin061503':
  115. Username = "Admin Chase"
  116. Pass = input("Password: ")
  117. if Pass == 'Slenderman123':
  118. Username = 'Admin Chase'
  119. break
  120. else:
  121. print("")
  122. print("The Input is Incorrect")
  123. print("")
  124. else:
  125. print("")
  126. print("UNKNOWN USERNAME")
  127. print("")
  128. continue
  129.  
  130.  
  131. print("")
  132. print("Welcome, " + Username + "!")
  133. print("")
  134.  
  135. def main():
  136. Input = input("TAG: ")
  137. if Input == '/exit':
  138. answerexit = input("Are you sure? ")
  139. if answerexit == 'yes':
  140. print("")
  141. print("SHUTTING DOWN..")
  142. print("")
  143. time.sleep(2)
  144. os.kill(os.getpid(), signal.SIGTERM)
  145. elif answerexit == 'no':
  146. print("")
  147. print("SHUTDOWN ABORTED..")
  148. print("")
  149. main()
  150. elif Input == '':
  151. print("")
  152. print("Please enter a tag or command.")
  153. print("")
  154. main()
  155. elif Input == '<!DOCTYPE html>':
  156. print(A)
  157. time.sleep(1)
  158. main()
  159. elif Input == '<p>':
  160. print(a)
  161. time.sleep(1)
  162. main()
  163. elif Input == '<h>':
  164. print(B)
  165. time.sleep(1)
  166. main()
  167. elif Input == '<a>':
  168. print(b)
  169. time.sleep(1)
  170. main()
  171. elif Input == '<div>':
  172. print(C)
  173. time.sleep(1)
  174. main()
  175. else:
  176. print("")
  177. print('''The tag or command you entered is Not Recognized of is not yet
  178. supported by this tool.''')
  179. print("")
  180. main()
  181.  
  182. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement