Browse Source

google search widget

pull/297/head
ktatoglan 2 years ago
parent
commit
57d19e0a16
5 changed files with 1335 additions and 659 deletions
  1. +17
    -17
      src/assets/scripts/index.js
  2. +10
    -0
      src/assets/scripts/main.js
  3. +12
    -0
      src/assets/styles/main.css
  4. +1100
    -0
      src/home.html
  5. +196
    -642
      src/index.html

+ 17
- 17
src/assets/scripts/index.js View File

@ -1,19 +1,19 @@
// import "@popperjs/core";
import bootstrap from 'bootstrap';
import bootstrap from "bootstrap";
import '../styles/index.scss';
import './fullcalendar';
import './masonry';
import './charts';
import './popover';
import './scrollbar';
import './search';
import './sidebar';
import './skycons';
import './vectorMaps';
import './chat';
import './datatable';
import './datepicker';
import './email';
import './googleMaps';
import './utils';
import "../styles/index.scss";
import "./fullcalendar";
import "./masonry";
import "./charts";
import "./popover";
import "./scrollbar";
import "./search";
import "./sidebar";
import "./skycons";
import "./vectorMaps";
import "./chat";
import "./datatable";
import "./datepicker";
import "./email";
import "./googleMaps";
import "./utils";

+ 10
- 0
src/assets/scripts/main.js View File

@ -0,0 +1,10 @@
// Google Search
function googleSearch() {
var text = document.getElementById("search-text").value;
text = text.replaceAll(" ", "+");
console.log(text);
if (text != undefined && text != null) {
window.open("https://www.google.com/search?q=" + text, '_blank');
}
}

+ 12
- 0
src/assets/styles/main.css View File

@ -0,0 +1,12 @@
.search-image-container{
-webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 40%, transparent 95%);
}
.google-logo{
width: 30%;
}
.m-1r{
margin: 1rem!important;
}
.search-button{
width: 200px;
}

+ 1100
- 0
src/home.html
File diff suppressed because it is too large
View File


+ 196
- 642
src/index.html
File diff suppressed because it is too large
View File


Loading…
Cancel
Save