Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.88 KB | None | 0 0
  1. <template>
  2. <v-ons-page @show="page_onShow">
  3. <v-ons-toolbar modifier="noshadow">
  4. <div class="left fyd-color-red">
  5. <router-link to="/agenda" tag="v-ons-toolbar-button">
  6. <v-ons-icon icon="fa-chevron-left" fixed-width="true" class="fyd-color-red"></v-ons-icon>
  7. </router-link>
  8. </div>
  9. <div class="center">Edit Hours</div>
  10. </v-ons-toolbar>
  11.  
  12. <v-ons-list>
  13. <!-- Header -->
  14. <v-ons-list-header>Title</v-ons-list-header>
  15. <v-ons-list-item>
  16. <v-ons-input type="text" placeholder="Enter Title" modifier="transparent"></v-ons-input>
  17. </v-ons-list-item>
  18.  
  19. <v-ons-list-header>Date</v-ons-list-header>
  20. <v-ons-list-item>
  21. <div class="left" style="width: 30px;">
  22. <v-ons-icon icon="fa-calendar" fixed-width="true" size="20px"></v-ons-icon>
  23. </div>
  24. <v-ons-row>
  25. <v-ons-col>
  26. <p class="fyd-text-tiny">From</p>
  27. <span
  28. @click="showDatepicker('from')"
  29. class="fyd-bold fyd-border-bottom-red"
  30. >{{dateFormatted(new Date())}}</span>
  31. </v-ons-col>
  32. <v-ons-col>
  33. <p class="fyd-text-tiny">To</p>
  34. <span
  35. @click="showDatepicker('to')"
  36. class="fyd-bold fyd-border-bottom-red"
  37. >{{dateFormatted(new Date())}}</span>
  38. </v-ons-col>
  39. <v-ons-col></v-ons-col>
  40. </v-ons-row>
  41. </v-ons-list-item>
  42.  
  43. <!-- Header -->
  44. <v-ons-list-header>Notify Me</v-ons-list-header>
  45. <!-- Options -->
  46. <template>
  47. <v-ons-list-item tappable>
  48. <div class="left" style="width: 30px;">
  49. <v-ons-icon icon="fa-bell" fixed-width="true" size="20px"></v-ons-icon>
  50. </div>
  51. <v-ons-select style="width: 90%" v-model="selectedItem">
  52. <option v-for="item in minutes" :value="item.value" v-bind:key="item">{{ item }} minutes</option>
  53. </v-ons-select>
  54. </v-ons-list-item>
  55. </template>
  56.  
  57. <!-- Header -->
  58. <v-ons-list-header>Invitees</v-ons-list-header>
  59. <!-- Options -->
  60. <template>
  61. <v-ons-list-item>
  62. <div class="left" style="width: 30px;" @click="isContactsModalVisible = true">
  63. <v-ons-icon icon="fa-user-plus" class="fyd-color-red" fixed-width="true" size="20px"></v-ons-icon>
  64. </div>
  65. <v-ons-input
  66. id="myInput"
  67. type="text"
  68. modifier="transparent"
  69. placeholder="Enter name or email address or phone number"
  70. ></v-ons-input>
  71.  
  72. </v-ons-list-item>
  73. </template>
  74.  
  75. <v-ons-dialog
  76. cancelable
  77. :visible.sync="isContactsModalVisible"
  78. style="height: 100% !important"
  79. >
  80. <v-ons-list>
  81. <v-ons-list-item v-for="(contact, $index) in contacts" :key="contact" tappable>
  82. <label class="left">
  83. <v-ons-checkbox
  84. :input-id="'checkbox-' + $index"
  85. :value="$index"
  86. modifier="fyd-checkbox"
  87. v-model="checkedContacts"
  88. ></v-ons-checkbox>
  89. </label>
  90. <label class="center" :for="'checkbox-' + $index">{{ contact.displayName }}</label>
  91.  
  92. <label
  93. class="right"
  94. :for="'checkbox-' + $index"
  95. >{{ checkForPhoneNumber(contact.phoneNumbers) }}</label>
  96. </v-ons-list-item>
  97. </v-ons-list>
  98. </v-ons-dialog>
  99.  
  100. <!-- Header -->
  101. <v-ons-list-header>Notes</v-ons-list-header>
  102. <!-- Options -->
  103. <template>
  104. <v-ons-list-item>
  105. <div class="left" style="width: 30px;">
  106. <v-ons-icon icon="fa-sticky-note" fixed-width="true" size="20px"></v-ons-icon>
  107. </div>
  108. <v-ons-input type="text" placeholder="Enter notes"></v-ons-input>
  109. </v-ons-list-item>
  110. </template>
  111.  
  112. <v-ons-list-header>Rate</v-ons-list-header>
  113. <v-ons-list-item>
  114. <div class="left" style="width: 30px;">
  115. <v-ons-icon icon="fa-usd" fixed-width="true" size="20px"></v-ons-icon>
  116. </div>
  117. <v-ons-input type="text" modifier="transparent" v-model="state.rate"></v-ons-input>
  118. </v-ons-list-item>
  119.  
  120. <v-ons-list-header>Session Length</v-ons-list-header>
  121. <v-ons-list-item>
  122. <div class="left" style="width: 30px;">
  123. <v-ons-icon icon="fa-clock" fixed-width="true" size="20px"></v-ons-icon>
  124. </div>
  125. <v-ons-row vertical-align="center">
  126. <v-ons-col class="fyd-text-tiny fyd-align-center">
  127. <v-ons-range
  128. id="maxSessionRange"
  129. modifier="fyd-range"
  130. min="0"
  131. max="300"
  132. v-model="state.sessionLengths[1]"
  133. style="width: 80%;"
  134. ></v-ons-range>
  135. </v-ons-col>
  136. <v-ons-col width="40px">
  137. <span v-if="state.sessionLengths[1] < 300">{{state.sessionLengths[1]}}</span>
  138. <span v-else>None</span>
  139. </v-ons-col>
  140. </v-ons-row>
  141. </v-ons-list-item>
  142.  
  143. <v-ons-list-header>Locations</v-ons-list-header>
  144. <template>
  145. <v-ons-list-item>
  146. <div class="left" style="width: 30px;">
  147. <v-ons-icon icon="fa-map-marker" fixed-width="true" size="20px"></v-ons-icon>
  148. </div>
  149. <v-ons-input
  150. ref="autocomplete"
  151. type="text"
  152. placeholder="Enter Location"
  153. modifier="transparent"
  154. ></v-ons-input>
  155.  
  156. </v-ons-list-item>
  157. <v-ons-list-item
  158. tappable
  159. v-for="(location, $index) in state.locations"
  160. v-bind:key="location"
  161. modifier="nodivider"
  162. >
  163. <label class="left">
  164. <v-ons-checkbox
  165. v-model="location.isChecked"
  166. modifier="fyd-checkbox"
  167. :input-id="'location-' + $index"
  168. ></v-ons-checkbox>
  169. </label>
  170. <label :for="'location-' + $index" class="center">{{location.name}}</label>
  171. </v-ons-list-item>
  172. </template>
  173. </v-ons-list>
  174. </v-ons-page>
  175. </template>
  176.  
  177. <style scoped>
  178. ons-col[modifier="fyd-active"] {
  179. color: red;
  180. font-weight: bold;
  181. }
  182. </style>
  183.  
  184. <script>
  185. /* global _:false, moment:false */
  186.  
  187. import "../assets/css/editavailability.css";
  188.  
  189. export default {
  190. name: "schedulerEditAvailability",
  191. data() {
  192. return {
  193. checkedContacts: ["eric"],
  194. countries: [
  195. "Afghanistan",
  196. "Albania",
  197. "Algeria",
  198. "Andorra",
  199. "Angola",
  200. "Anguilla",
  201. "Antigua &amp; Barbuda",
  202. "Argentina",
  203. "Armenia",
  204. "Aruba",
  205. "Australia"
  206. ],
  207. isContactsModalVisible: false,
  208. selectedMinutes: "",
  209. minutes: ["5", "10", "15", "20", "25", "30", "60", "120", "200"],
  210. colors: [
  211. { name: "Blue", class: "fyd-color-availability-blue" },
  212. { name: "Green", class: "fyd-color-availability-green" },
  213. { name: "Pink", class: "fyd-color-availability-pink" },
  214. { name: "Red", class: "fyd-color-availability-red" },
  215. { name: "Yellow", class: "fyd-color-availability-yellow" }
  216. ],
  217. days: [
  218. "Sunday",
  219. "Monday",
  220. "Tuesday",
  221. "Wednesday",
  222. "Thursday",
  223. "Friday",
  224. "Saturday"
  225. ],
  226. colorModalVisible: false,
  227. switchOn: false,
  228. autocomplete: null,
  229. contacts: [
  230. {
  231. id: "1",
  232. rawId: "1",
  233. displayName: "austin powers ",
  234. pic:
  235. "https://firebasestorage.googleapis.com/v0/b/fydrant.appspot.com/o/booking_pic_01.jpg?alt=media&token=12fdbce8-119f-4ad3-8840-92de10b6f2e2",
  236. name: {
  237. givenName: "austin powers givenName",
  238. formatted: "austin powers formatted"
  239. },
  240. phoneNumbers: [
  241. {
  242. id: 1,
  243. pref: false,
  244. value: "(876) 543-4444",
  245. type: "mobile"
  246. }
  247. ],
  248. emails: [
  249. {
  250. id: 4,
  251. pref: false,
  252. value: "austinpowers@email.com",
  253. type: "home"
  254. }
  255. ],
  256. note: null,
  257. photos: null,
  258. categories: null
  259. },
  260. {
  261. id: "2",
  262. rawId: "2",
  263. displayName: "amilya ",
  264. pic:
  265. "https://firebasestorage.googleapis.com/v0/b/fydrant.appspot.com/o/booking_pic_02.jpg?alt=media&token=eb8286dd-f5c1-44b1-a61c-6472b74f435b",
  266. name: {
  267. givenName: "amilyia givenName",
  268. formatted: "amiliyia formatted"
  269. },
  270. phoneNumbers: [
  271. {
  272. id: 2,
  273. pref: false,
  274. value: "(876) 941-4335",
  275. type: "mobile"
  276. }
  277. ],
  278. emails: [
  279. {
  280. id: 4,
  281. pref: false,
  282. value: "ami@email.com",
  283. type: "home"
  284. }
  285. ],
  286. note: null,
  287. photos: null,
  288. categories: null
  289. },
  290. {
  291. id: "3",
  292. rawId: "3",
  293. displayName: "nateblessings ",
  294. pic:
  295. "https://firebasestorage.googleapis.com/v0/b/fydrant.appspot.com/o/booking_pic_03.jpg?alt=media&token=3764ccd6-4918-4041-9dab-b0d953b56a05",
  296. name: {
  297. givenName: "nateblessings givenName",
  298. formatted: "nateblessings formatted"
  299. },
  300. phoneNumbers: [
  301. {
  302. id: 3,
  303. pref: false,
  304. value: null,
  305. type: "mobile"
  306. }
  307. ],
  308. emails: [
  309. {
  310. id: 4,
  311. pref: false,
  312. value: "suh@email.com",
  313. type: "home"
  314. }
  315. ],
  316. note: null,
  317. photos: null,
  318. categories: null
  319. }
  320. ]
  321. };
  322. },
  323. props: ["stack"],
  324. computed: {
  325. state() {
  326. return this.$store.getters.getAvailability.editAvailability;
  327. }
  328. },
  329. methods: {
  330. addNewTimeAndDay() {
  331. this.state.availabilities.push({
  332. days: [],
  333. fromTime: "8:00",
  334. toTime: "17:00"
  335. });
  336. },
  337. page_onShow() {
  338. this.setSessionRangeStep("minSessionRange");
  339. this.setSessionRangeStep("maxSessionRange");
  340. },
  341. setSessionRangeStep() {
  342.  
  343. //var slider = document.getElementById(id);
  344. //slider.children[0].step = "15";
  345. },
  346. removeAvailability(a) {
  347. this.state.availabilities = this.state.availabilities.filter(
  348. x => JSON.stringify(x) !== JSON.stringify(a)
  349. );
  350. },
  351. dayModifier(availability, dayIdx) {
  352. return _.includes(availability.days, dayIdx) ? "fyd-active" : "";
  353. },
  354. toggleActiveDays(availability, dayIdx) {
  355. var indexOfDay = _.indexOf(availability.days, dayIdx);
  356. if (indexOfDay === -1) availability.days.push(dayIdx);
  357. else availability.days.splice(indexOfDay, 1);
  358. },
  359. showTimepicker(target, availability) {
  360. console.log("inside showtimepicker");
  361. var dateTime;
  362. if (target == "from") {
  363. dateTime = moment(availability.fromTime, "HH:mm").toDate();
  364. } else if (target == "to") {
  365. dateTime = moment(availability.toTime, "HH:mm").toDate();
  366. }
  367.  
  368. window.plugins.datePicker.show(
  369. {
  370. date: dateTime,
  371. mode: "time", // date or time or blank for both
  372. allowOldDates: false
  373. },
  374. function(returnDate) {
  375. if (!returnDate) return;
  376.  
  377. if (target == "from") {
  378. availability.fromTime = moment(returnDate).format(
  379. "HH:mm"
  380. );
  381. } else if (target == "to") {
  382. availability.toTime = moment(returnDate).format(
  383. "HH:mm"
  384. );
  385. }
  386. }
  387. );
  388. },
  389. showDatepicker(target) {
  390. // Save instance reference
  391. var self = this.state;
  392.  
  393. // Get current date
  394. var oldDate;
  395. switch (target) {
  396. case "from":
  397. oldDate = new Date();
  398. break;
  399. case "to":
  400. oldDate = new Date();
  401. break;
  402. }
  403.  
  404. // Display date picker
  405. window.plugins.datePicker.show(
  406. {
  407. date: oldDate,
  408. mode: "date",
  409. allowOldDates: true
  410. },
  411. function(returnDate) {
  412. if (!returnDate) return;
  413.  
  414. // Set new date
  415. switch (target) {
  416. case "from":
  417. self.duration.fromDate = moment(
  418. returnDate
  419. ).toDate();
  420. break;
  421. case "to":
  422. self.duration.toDate = moment(returnDate).toDate();
  423. break;
  424. }
  425. }
  426. );
  427. },
  428. dateFormatted(value) {
  429. return moment(value).format("MM-DD-YYYY");
  430. },
  431. showColorModal() {
  432. this.colorModalVisible = true;
  433. },
  434. setColor(color) {
  435. this.color = color;
  436. this.colorModalVisible = false;
  437. },
  438. checkForPhoneNumber(phoneNumbers) {
  439. if (phoneNumbers !== null)
  440. if (phoneNumbers[0] !== undefined || phoneNumbers[0] !== null)
  441. if (
  442. phoneNumbers[0].value != undefined ||
  443. phoneNumbers[0].value != null
  444. ) {
  445. return phoneNumbers[0].value;
  446. } else {
  447. return "no phone number";
  448. }
  449. },
  450. autocomplete(inp, arr) {
  451. var currentFocus;
  452. /*execute a function when someone writes in the text field:*/
  453. inp.addEventListener("input", function() {
  454. var a,
  455. b,
  456. i,
  457. val = this.value;
  458. /*close any already open lists of autocompleted values*/
  459. closeAllLists();
  460. if (!val) {
  461. return false;
  462. }
  463. currentFocus = -1;
  464. /*create a DIV element that will contain the items (values):*/
  465. a = document.createElement("DIV");
  466. a.setAttribute("id", this.id + "autocomplete-list");
  467. a.setAttribute("class", "autocomplete-items");
  468. /*append the DIV element as a child of the autocomplete container:*/
  469. this.parentNode.appendChild(a);
  470. /*for each item in the array...*/
  471. for (i = 0; i < arr.length; i++) {
  472. /*check if the item starts with the same letters as the text field value:*/
  473. if (
  474. arr[i].substr(0, val.length).toUpperCase() ==
  475. val.toUpperCase()
  476. ) {
  477. /*create a DIV element for each matching element:*/
  478. b = document.createElement("DIV");
  479. /*make the matching letters bold:*/
  480. b.innerHTML =
  481. "<strong>" +
  482. arr[i].substr(0, val.length) +
  483. "</strong>";
  484. b.innerHTML += arr[i].substr(val.length);
  485. /*insert a input field that will hold the current array item's value:*/
  486. b.innerHTML +=
  487. "<input type='hidden' value='" + arr[i] + "'>";
  488. /*execute a function when someone clicks on the item value (DIV element):*/
  489. b.addEventListener("click", function() {
  490. /*insert the value for the autocomplete text field:*/
  491. inp.value = this.getElementsByTagName(
  492. "input"
  493. )[0].value;
  494. /*close the list of autocompleted values,
  495. (or any other open lists of autocompleted values:*/
  496. closeAllLists();
  497. });
  498. a.appendChild(b);
  499. }
  500. }
  501. });
  502. /*execute a function presses a key on the keyboard:*/
  503. inp.addEventListener("keydown", function(e) {
  504. var x = document.getElementById(this.id + "autocomplete-list");
  505. if (x) x = x.getElementsByTagName("div");
  506. if (e.keyCode == 40) {
  507. /*If the arrow DOWN key is pressed,
  508. increase the currentFocus variable:*/
  509. currentFocus++;
  510. /*and and make the current item more visible:*/
  511. addActive(x);
  512. } else if (e.keyCode == 38) {
  513. //up
  514. /*If the arrow UP key is pressed,
  515. decrease the currentFocus variable:*/
  516. currentFocus--;
  517. /*and and make the current item more visible:*/
  518. addActive(x);
  519. } else if (e.keyCode == 13) {
  520. /*If the ENTER key is pressed, prevent the form from being submitted,*/
  521. e.preventDefault();
  522. if (currentFocus > -1) {
  523. /*and simulate a click on the "active" item:*/
  524. if (x) x[currentFocus].click();
  525. }
  526. }
  527. });
  528. function addActive(x) {
  529. /*a function to classify an item as "active":*/
  530. if (!x) return false;
  531. /*start by removing the "active" class on all items:*/
  532. removeActive(x);
  533. if (currentFocus >= x.length) currentFocus = 0;
  534. if (currentFocus < 0) currentFocus = x.length - 1;
  535. /*add class "autocomplete-active":*/
  536. x[currentFocus].classList.add("autocomplete-active");
  537. }
  538. function removeActive(x) {
  539. /*a function to remove the "active" class from all autocomplete items:*/
  540. for (var i = 0; i < x.length; i++) {
  541. x[i].classList.remove("autocomplete-active");
  542. }
  543. }
  544. function closeAllLists(elmnt) {
  545. /*close all autocomplete lists in the document,
  546. except the one passed as an argument:*/
  547. var x = document.getElementsByClassName("autocomplete-items");
  548. for (var i = 0; i < x.length; i++) {
  549. if (elmnt != x[i] && elmnt != inp) {
  550. x[i].parentNode.removeChild(x[i]);
  551. }
  552. }
  553. }
  554. /*execute a function when someone clicks in the document:*/
  555. document.addEventListener("click", function(e) {
  556. closeAllLists(e.target);
  557. });
  558. },
  559. myMethod() {
  560. console.log("hello world");
  561. },
  562. autocomplete2(inp, arr){
  563. var currentFocus;
  564. /*execute a function when someone writes in the text field:*/
  565. inp.addEventListener("input", function() {
  566. var a,
  567. b,
  568. i,
  569. val = this.value;
  570. /*close any already open lists of autocompleted values*/
  571. closeAllLists();
  572. if (!val) {
  573. return false;
  574. }
  575. currentFocus = -1;
  576. /*create a DIV element that will contain the items (values):*/
  577. a = document.createElement("DIV");
  578. a.setAttribute("id", this.id + "autocomplete-list");
  579. a.setAttribute("class", "autocomplete-items");
  580. /*append the DIV element as a child of the autocomplete container:*/
  581. this.parentNode.appendChild(a);
  582. /*for each item in the array...*/
  583. for (i = 0; i < arr.length; i++) {
  584. /*check if the item starts with the same letters as the text field value:*/
  585. if (
  586. arr[i].substr(0, val.length).toUpperCase() ==
  587. val.toUpperCase()
  588. ) {
  589. /*create a DIV element for each matching element:*/
  590. b = document.createElement("DIV");
  591. /*make the matching letters bold:*/
  592. b.innerHTML =
  593. "<strong>" +
  594. arr[i].substr(0, val.length) +
  595. "</strong>";
  596. b.innerHTML += arr[i].substr(val.length);
  597. /*insert a input field that will hold the current array item's value:*/
  598. b.innerHTML +=
  599. "<input type='hidden' value='" + arr[i] + "'>";
  600. /*execute a function when someone clicks on the item value (DIV element):*/
  601. b.addEventListener("click", function() {
  602. /*insert the value for the autocomplete text field:*/
  603. inp.value = this.getElementsByTagName(
  604. "input"
  605. )[0].value;
  606. /*close the list of autocompleted values,
  607. (or any other open lists of autocompleted values:*/
  608. closeAllLists();
  609. });
  610. a.appendChild(b);
  611. }
  612. }
  613. });
  614. /*execute a function presses a key on the keyboard:*/
  615. inp.addEventListener("keydown", function(e) {
  616. var x = document.getElementById(this.id + "autocomplete-list");
  617. if (x) x = x.getElementsByTagName("div");
  618. if (e.keyCode == 40) {
  619. /*If the arrow DOWN key is pressed,
  620. increase the currentFocus variable:*/
  621. currentFocus++;
  622. /*and and make the current item more visible:*/
  623. addActive(x);
  624. } else if (e.keyCode == 38) {
  625. //up
  626. /*If the arrow UP key is pressed,
  627. decrease the currentFocus variable:*/
  628. currentFocus--;
  629. /*and and make the current item more visible:*/
  630. addActive(x);
  631. } else if (e.keyCode == 13) {
  632. /*If the ENTER key is pressed, prevent the form from being submitted,*/
  633. e.preventDefault();
  634. if (currentFocus > -1) {
  635. /*and simulate a click on the "active" item:*/
  636. if (x) x[currentFocus].click();
  637. }
  638. }
  639. });
  640. function addActive(x) {
  641. /*a function to classify an item as "active":*/
  642. if (!x) return false;
  643. /*start by removing the "active" class on all items:*/
  644. removeActive(x);
  645. if (currentFocus >= x.length) currentFocus = 0;
  646. if (currentFocus < 0) currentFocus = x.length - 1;
  647. /*add class "autocomplete-active":*/
  648. x[currentFocus].classList.add("autocomplete-active");
  649. }
  650. function removeActive(x) {
  651. /*a function to remove the "active" class from all autocomplete items:*/
  652. for (var i = 0; i < x.length; i++) {
  653. x[i].classList.remove("autocomplete-active");
  654. }
  655. }
  656. function closeAllLists(elmnt) {
  657. /*close all autocomplete lists in the document,
  658. except the one passed as an argument:*/
  659. var x = document.getElementsByClassName("autocomplete-items");
  660. for (var i = 0; i < x.length; i++) {
  661. if (elmnt != x[i] && elmnt != inp) {
  662. x[i].parentNode.removeChild(x[i]);
  663. }
  664. }
  665. }
  666. /*execute a function when someone clicks in the document:*/
  667. document.addEventListener("click", function(e) {
  668. closeAllLists(e.target);
  669. });
  670. }
  671. },
  672. mounted : function() {
  673. var input = document.getElementById("myInput");
  674. console.log(input);
  675. this.autocomplete2(input, this.countries);
  676. //https://codepen.io/alligatorio/pen/mXRGLg
  677. }
  678. };
  679. </script>
  680.  
  681. <style scoped>
  682. /* disabled background for edit availability day is active to remove default blue background from onsen*/
  683.  
  684. .button {
  685. background: none;
  686. }
  687.  
  688. * {
  689. box-sizing: border-box;
  690. }
  691. body {
  692. font: 16px Arial;
  693. }
  694. .autocomplete {
  695. /*the container must be positioned relative:*/
  696. position: relative;
  697. display: inline-block;
  698. }
  699. input {
  700. border: 1px solid transparent;
  701. background-color: #f1f1f1;
  702. padding: 10px;
  703. font-size: 16px;
  704. }
  705. input[type="text"] {
  706. background-color: #f1f1f1;
  707. width: 100%;
  708. }
  709. input[type="submit"] {
  710. background-color: DodgerBlue;
  711. color: #fff;
  712. }
  713. .autocomplete-items {
  714. position: absolute;
  715. border: 1px solid #d4d4d4;
  716. border-bottom: none;
  717. border-top: none;
  718. z-index: 99;
  719. /*position the autocomplete items to be the same width as the container:*/
  720. top: 100%;
  721. left: 0;
  722. right: 0;
  723. }
  724. .autocomplete-items div {
  725. padding: 10px;
  726. cursor: pointer;
  727. background-color: #fff;
  728. border-bottom: 1px solid #d4d4d4;
  729. }
  730. .autocomplete-items div:hover {
  731. /*when hovering an item:*/
  732. background-color: #e9e9e9;
  733. }
  734. .autocomplete-active {
  735. /*when navigating through the items using the arrow keys:*/
  736. background-color: DodgerBlue !important;
  737. color: #ffffff;
  738. }
  739. </style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement