Your Name 4 年之前
父节点
当前提交
bdfba827ef
共有 2 个文件被更改,包括 152 次插入1 次删除
  1. 151 0
      similar_web/index.html
  2. 1 1
      web/browser_common.py

+ 151 - 0
similar_web/index.html

@@ -0,0 +1,151 @@
+<html>
+<head>
+<!-- Font Awesome -->
+<link
+  href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
+  rel="stylesheet"
+/>
+<!-- Google Fonts -->
+<link
+  href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap"
+  rel="stylesheet"
+/>
+<!-- MDB -->
+<link
+  href="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.css"
+  rel="stylesheet"
+/>
+<!-- MDB -->
+<script
+  type="text/javascript"
+  src="https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/3.3.0/mdb.min.js"
+></script>    
+</head>
+<body>
+
+<!-- Navbar -->
+<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
+    <!-- Container wrapper -->
+    <div class="container-fluid">
+      <!-- Navbar brand -->
+      <a class="navbar-brand" href="#">Navbar</a>
+  
+      <!-- Toggle button -->
+      <button class="navbar-toggler" type="button" data-mdb-toggle="collapse"
+        data-mdb-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
+        aria-label="Toggle navigation">
+        <i class="fas fa-bars text-light"></i>
+      </button>
+  
+      <!-- Collapsible wrapper -->
+      <div class="collapse navbar-collapse" id="navbarSupportedContent">
+        <!-- Left links -->
+        <ul class="navbar-nav me-auto d-flex flex-row mt-3 mt-lg-0">
+          <li class="nav-item text-center mx-2 mx-lg-1">
+            <a class="nav-link active" aria-current="page" href="#!">
+              <div>
+                <i class="fas fa-home fa-lg mb-1"></i>
+              </div>
+              Home
+            </a>
+          </li>
+          <li class="nav-item text-center mx-2 mx-lg-1">
+            <a class="nav-link" href="#!">
+              <div>
+                <i class="far fa-envelope fa-lg mb-1"></i>
+                <span class="badge rounded-pill badge-notification bg-danger">11</span>
+              </div>
+              Link
+            </a>
+          </li>
+          <li class="nav-item text-center mx-2 mx-lg-1">
+            <a class="nav-link disabled" aria-disabled="true" href="#!">
+              <div>
+                <i class="far fa-envelope fa-lg mb-1"></i>
+                <span class="badge rounded-pill badge-notification bg-warning">11</span>
+              </div>
+              Disabled
+            </a>
+          </li>
+          <li class="nav-item dropdown text-center mx-2 mx-lg-1">
+            <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-mdb-toggle="dropdown"
+              aria-expanded="false">
+              <div>
+                <i class="far fa-envelope fa-lg mb-1"></i>
+                <span class="badge rounded-pill badge-notification bg-primary">11</span>
+              </div>
+              Dropdown
+            </a>
+            <!-- Dropdown menu -->
+            <ul class="dropdown-menu dropdown-menu-dark" aria-labelledby="navbarDropdown">
+              <li><a class="dropdown-item" href="#">Action</a></li>
+              <li><a class="dropdown-item" href="#">Another action</a></li>
+              <li>
+                <hr class="dropdown-divider" />
+              </li>
+              <li>
+                <a class="dropdown-item" href="#">Something else here</a>
+              </li>
+            </ul>
+          </li>
+        </ul>
+        <!-- Left links -->
+  
+        <!-- Right links -->
+        <ul class="navbar-nav ms-auto d-flex flex-row mt-3 mt-lg-0">
+          <li class="nav-item text-center mx-2 mx-lg-1">
+            <a class="nav-link" href="#!">
+              <div>
+                <i class="fas fa-bell fa-lg mb-1"></i>
+                <span class="badge rounded-pill badge-notification bg-info">11</span>
+              </div>
+              Messages
+            </a>
+          </li>
+          <li class="nav-item text-center mx-2 mx-lg-1">
+            <a class="nav-link" href="#!">
+              <div>
+                <i class="fas fa-globe-americas fa-lg mb-1"></i>
+                <span class="badge rounded-pill badge-notification bg-success">11</span>
+              </div>
+              News
+            </a>
+          </li>
+        </ul>
+        <!-- Right links -->
+  
+      </div>
+      <!-- Collapsible wrapper -->
+    </div>
+    <!-- Container wrapper -->
+  </nav>
+  <!-- Navbar -->
+
+
+</br>
+
+<div class="container">
+  <div class="row">
+    <div class="col-1 col-lg-1"></div>
+
+    <div class="col-sm-11 col-lg-11">
+
+        <!-- Search form -->
+        <form class="d-flex input-group w-auto">
+          <input type="search" class="form-control" placeholder="Search" aria-label="Domain Name" />
+          <button class="btn btn-primary" type="button" data-mdb-ripple-color="dark">
+            Search
+          </button>
+        </form>
+
+
+
+    </div>
+  </div>
+
+</div>
+
+</body>
+
+    
+</html>

+ 1 - 1
web/browser_common.py

@@ -21,7 +21,7 @@ class JBrowser:
         option = webdriver.ChromeOptions()
         option.add_argument('--disable-web-security') 
         option.add_argument('--allow-running-insecure-content')
-#        option.add_argument('--headless')
+        option.add_argument('--headless')
 
         if os.name=='nt':
             option.add_argument("--user-data-dir='C:\\Users\\jared\\AppData\\Local\\Google\\Chrome\\User Data\\"+self.profilepath+"\\'")