ExternalLibs.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657
  1. <template>
  2. <Window ref="window" @close="close" margin="2px">
  3. <template slot="header">
  4. {{ header }}
  5. </template>
  6. <template slot="buttons">
  7. <span class="full-screen-button row justify-center items-center" @mousedown.stop @click="fullScreenToggle">
  8. <q-icon :name="(fullScreenActive ? 'la la-compress-arrows-alt': 'la la-expand-arrows-alt')" size="16px"/>
  9. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">На весь экран</q-tooltip>
  10. </span>
  11. </template>
  12. <div v-show="ready" class="col column" style="min-width: 600px">
  13. <div class="row items-center q-px-sm" style="height: 50px">
  14. <q-select class="q-mr-sm" ref="rootLink" v-model="rootLink" :options="rootLinkOptions" @input="rootLinkInput"
  15. @popup-show="onSelectPopupShow" @popup-hide="onSelectPopupHide"
  16. style="width: 230px"
  17. dropdown-icon="la la-angle-down la-sm"
  18. rounded outlined dense emit-value map-options display-value-sanitize options-sanitize
  19. >
  20. <template v-slot:prepend>
  21. <q-btn class="q-mr-xs" round dense color="blue" icon="la la-plus" @click.stop="addBookmark" size="12px">
  22. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">Добавить закладку</q-tooltip>
  23. </q-btn>
  24. <q-btn round dense color="blue" icon="la la-bars" @click.stop="bookmarkSettings" size="12px">
  25. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">Настроить закладки</q-tooltip>
  26. </q-btn>
  27. </template>
  28. <template v-slot:selected>
  29. <div style="overflow: hidden; white-space: nowrap;">{{ rootLinkWithoutProtocol }}</div>
  30. </template>
  31. </q-select>
  32. <q-select class="q-mr-sm" ref="selectedLink" v-model="selectedLink" :options="selectedLinkOptions" @input="selectedLinkInput" style="width: 50px"
  33. @popup-show="onSelectPopupShow" @popup-hide="onSelectPopupHide"
  34. dropdown-icon="la la-angle-down la-sm"
  35. rounded outlined dense emit-value map-options hide-selected display-value-sanitize options-sanitize
  36. >
  37. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">Закладки</q-tooltip>
  38. </q-select>
  39. <q-input class="col q-mr-sm" ref="input" rounded outlined dense bg-color="white" v-model="bookUrl" placeholder="Скопируйте сюда URL книги"
  40. @focus="selectAllOnFocus" @keydown="bookUrlKeyDown"
  41. >
  42. <template v-slot:prepend>
  43. <q-btn class="q-mr-xs" round dense color="blue" icon="la la-home" @click="goToLink(libs.startLink)" size="12px">
  44. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">Вернуться на стартовую страницу</q-tooltip>
  45. </q-btn>
  46. <q-btn round dense color="blue" icon="la la-angle-double-down" @click="openBookUrlInFrame" size="12px" :disabled="!bookUrl">
  47. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">Загрузить URL во фрейм</q-tooltip>
  48. </q-btn>
  49. </template>
  50. </q-input>
  51. <q-btn rounded color="green-7" no-caps size="14px" @click="submitUrl">Открыть
  52. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">Открыть в читалке</q-tooltip>
  53. </q-btn>
  54. </div>
  55. <div class="separator"></div>
  56. <div class="col fit" style="position: relative;">
  57. <iframe v-if="frameVisible" class="fit" ref="frame" :src="frameSrc" frameborder="0"></iframe>
  58. <div v-show="transparentLayoutVisible" ref="transparentLayout" class="fit transparent-layout" @click="transparentLayoutClick"></div>
  59. </div>
  60. <Dialog ref="dialogAddBookmark" v-model="addBookmarkVisible">
  61. <template slot="header">
  62. <div class="row items-center">
  63. <q-icon class="q-mr-sm" name="la la-bookmark" size="28px"></q-icon>
  64. <div v-if="addBookmarkMode == 'edit'">Редактировать закладку</div>
  65. <div v-else>Добавить закладку</div>
  66. </div>
  67. </template>
  68. <div class="q-mx-md row">
  69. <q-input ref="bookmarkLink" class="col q-mr-sm" outlined dense bg-color="white" v-model="bookmarkLink" @keydown="bookmarkLinkKeyDown"
  70. placeholder="Ссылка для закладки" maxlength="2000" @focus="selectAllOnFocus">
  71. </q-input>
  72. <q-select class="q-mr-sm" ref="defaultRootLink" v-model="defaultRootLink" :options="defaultRootLinkOptions" @input="defaultRootLinkInput" style="width: 50px"
  73. dropdown-icon="la la-angle-down la-sm"
  74. outlined dense emit-value map-options hide-selected display-value-sanitize options-sanitize
  75. >
  76. <q-tooltip :delay="1500" anchor="bottom middle" content-style="font-size: 80%">Предустановленные ссылки</q-tooltip>
  77. </q-select>
  78. </div>
  79. <div class="q-mx-md q-mt-md">
  80. <q-input class="col q-mr-sm" ref="bookmarkDesc" outlined dense bg-color="white" v-model="bookmarkDesc" @keydown="bookmarkDescKeyDown"
  81. placeholder="Описание" style="width: 400px" maxlength="100" @focus="selectAllOnFocus">
  82. </q-input>
  83. </div>
  84. <template slot="footer">
  85. <q-btn class="q-px-md q-ml-sm" dense no-caps v-close-popup>Отмена</q-btn>
  86. <q-btn class="q-px-md q-ml-sm" color="primary" dense no-caps @click="okAddBookmark" :disabled="!bookmarkLink">OK</q-btn>
  87. </template>
  88. </Dialog>
  89. </div>
  90. <BookmarkSettings v-if="bookmarkSettingsActive" ref="bookmarkSettings" :libs="libs" :addBookmarkVisible="addBookmarkVisible"
  91. @do-action="doAction" @close="closeBookmarkSettings">
  92. </BookmarkSettings>
  93. </Window>
  94. </template>
  95. <script>
  96. //-----------------------------------------------------------------------------
  97. import Vue from 'vue';
  98. import Component from 'vue-class-component';
  99. import _ from 'lodash';
  100. import Window from '../share/Window.vue';
  101. import Dialog from '../share/Dialog.vue';
  102. import BookmarkSettings from './BookmarkSettings/BookmarkSettings.vue';
  103. import rstore from '../../store/modules/reader';
  104. import * as utils from '../../share/utils';
  105. import * as lu from './linkUtils';
  106. const proxySubst = {
  107. 'http://flibusta.is': 'http://b.liberama.top:23480',
  108. };
  109. export default @Component({
  110. components: {
  111. Window,
  112. Dialog,
  113. BookmarkSettings
  114. },
  115. watch: {
  116. libs: function() {
  117. this.loadLibs();
  118. },
  119. rootLink: function() {
  120. this.updateSelectedLink();
  121. this.updateStartLink();
  122. },
  123. selectedLink: function() {
  124. this.updateStartLink();
  125. },
  126. defaultRootLink: function() {
  127. this.updateBookmarkLink();
  128. }
  129. }
  130. })
  131. class ExternalLibs extends Vue {
  132. ready = false;
  133. frameVisible = false;
  134. startLink = '';
  135. rootLink = '';
  136. selectedLink = '';
  137. frameSrc = '';
  138. bookUrl = '';
  139. libs = {};
  140. fullScreenActive = false;
  141. addBookmarkVisible = false;
  142. transparentLayoutVisible = false;
  143. addBookmarkMode = '';
  144. bookmarkLink = '';
  145. bookmarkDesc = '';
  146. defaultRootLink = '';
  147. bookmarkSettingsActive = false;
  148. created() {
  149. this.$root.addKeyHook(this.keyHook);
  150. document.addEventListener('fullscreenchange', () => {
  151. this.fullScreenActive = (document.fullscreenElement !== null);
  152. });
  153. //this.commit = this.$store.commit;
  154. //this.commit('reader/setLibs', rstore.libsDefaults);
  155. }
  156. mounted() {
  157. //Поправка метода toggleOption компонента select фреймворка quasar, необходимо другое поведение
  158. //$emit('input'.. вызывается всегда
  159. this.toggleOption = function(opt, keepOpen) {
  160. if (this.editable !== true || opt === void 0 || this.isOptionDisabled(opt) === true) {
  161. return;
  162. }
  163. const optValue = this.getOptionValue(opt);
  164. if (this.multiple !== true) {
  165. if (keepOpen !== true) {
  166. this.updateInputValue(this.fillInput === true ? this.getOptionLabel(opt) : '', true, true);
  167. this.hidePopup();
  168. }
  169. this.$refs.target !== void 0 && this.$refs.target.focus();
  170. this.$emit('input', this.emitValue === true ? optValue : opt);
  171. }
  172. };
  173. this.$refs.rootLink.toggleOption = this.toggleOption;
  174. this.$refs.selectedLink.toggleOption = this.toggleOption;
  175. (async() => {
  176. //подождем this.mode
  177. let i = 0;
  178. while(!this.mode && i < 100) {
  179. await utils.sleep(100);
  180. i++;
  181. }
  182. if (this.mode != 'liberama.top') {
  183. this.$router.replace('/404');
  184. return;
  185. }
  186. this.$refs.window.init();
  187. this.opener = null;
  188. const host = window.location.host;
  189. const openerHost = (host.indexOf('b.') == 0 ? host.substring(2) : host);
  190. const openerOrigin1 = `http://${openerHost}`;
  191. const openerOrigin2 = `https://${openerHost}`;
  192. window.addEventListener('message', (event) => {
  193. if (event.origin !== openerOrigin1 && event.origin !== openerOrigin2)
  194. return;
  195. if (!_.isObject(event.data) || event.data.from != 'LibsPage')
  196. return;
  197. if (event.origin == openerOrigin1)
  198. this.opener = window.opener;
  199. else
  200. this.opener = event.source;
  201. this.openerOrigin = event.origin;
  202. //console.log(event);
  203. this.recvMessage(event.data);
  204. });
  205. //Ожидаем родителя
  206. i = 0;
  207. while(!this.opener) {
  208. await utils.sleep(1000);
  209. i++;
  210. if (i >= 5) {
  211. await this.$root.stdDialog.alert('Нет связи с читалкой. Окно будет закрыто', 'Ошибка');
  212. window.close();
  213. }
  214. }
  215. //Проверка закрытия родительского окна
  216. while(this.opener) {
  217. await this.checkOpener();
  218. await utils.sleep(1000);
  219. }
  220. })();
  221. }
  222. recvMessage(d) {
  223. if (d.type == 'mes') {
  224. switch(d.data) {
  225. case 'hello': this.sendMessage({type: 'mes', data: 'ready'}); break;
  226. }
  227. } else if (d.type == 'libs') {
  228. this.ready = true;
  229. this.libs = _.cloneDeep(d.data);
  230. if (!this.frameSrc)
  231. this.goToLink(this.libs.startLink);
  232. } else if (d.type == 'notify') {
  233. this.$root.notify.success(d.data, '', {position: 'bottom-right'});
  234. }
  235. }
  236. sendMessage(d) {
  237. (async() => {
  238. await this.checkOpener();
  239. if (this.opener && this.openerOrigin)
  240. this.opener.postMessage(Object.assign({}, {from: 'ExternalLibs'}, d), this.openerOrigin);
  241. })();
  242. }
  243. async checkOpener() {
  244. if (this.opener.closed) {
  245. await this.$root.stdDialog.alert('Потеряна связь с читалкой. Окно будет закрыто', 'Ошибка');
  246. window.close();
  247. }
  248. }
  249. commitLibs(libs) {
  250. this.sendMessage({type: 'libs', data: libs});
  251. }
  252. loadLibs() {
  253. const libs = this.libs;
  254. this.startLink = (libs.comment ? libs.comment + ' ': '') + lu.removeProtocol(libs.startLink);
  255. this.rootLink = lu.getOrigin(libs.startLink);
  256. this.updateSelectedLink();
  257. }
  258. doAction(event) {
  259. switch (event.action) {
  260. case 'setLibs': this.commitLibs(event.data); break;
  261. case 'setRootLink': this.rootLink = event.data; this.rootLinkInput(); break;
  262. case 'setSelectedLink': this.selectedLink = event.data; this.selectedLinkInput(); break;
  263. case 'editBookmark': this.addBookmark('edit', event.data.link, event.data.desc); break;
  264. case 'addBookmark': this.addBookmark('add'); break;
  265. }
  266. }
  267. get mode() {
  268. return this.$store.state.config.mode;
  269. }
  270. get header() {
  271. let result = (this.ready ? 'Библиотека' : 'Загрузка...');
  272. if (this.ready && this.startLink) {
  273. result += ` | ${this.startLink}`;
  274. }
  275. this.$root.$emit('set-app-title', result);
  276. return result;
  277. }
  278. get rootLinkWithoutProtocol() {
  279. return lu.removeProtocol(this.rootLink);
  280. }
  281. updateSelectedLink() {
  282. if (!this.ready)
  283. return;
  284. const index = lu.getRootIndexByUrl(this.libs.groups, this.rootLink);
  285. if (index >= 0)
  286. this.selectedLink = this.libs.groups[index].s;
  287. }
  288. updateStartLink() {
  289. if (!this.ready)
  290. return;
  291. const index = lu.getRootIndexByUrl(this.libs.groups, this.rootLink);
  292. if (index >= 0) {
  293. let libs = _.cloneDeep(this.libs);
  294. libs.groups[index].s = this.selectedLink;
  295. libs.startLink = this.selectedLink;
  296. libs.comment = this.getCommentByLink(libs.groups[index].list, this.selectedLink);
  297. this.goToLink(this.selectedLink);
  298. this.commitLibs(libs);
  299. }
  300. }
  301. get rootLinkOptions() {
  302. let result = [];
  303. if (!this.ready)
  304. return result;
  305. this.libs.groups.forEach(group => {
  306. result.push({label: lu.removeProtocol(group.r), value: group.r});
  307. });
  308. return result;
  309. }
  310. get defaultRootLinkOptions() {
  311. let result = [];
  312. rstore.libsDefaults.groups.forEach(group => {
  313. result.push({label: lu.removeProtocol(group.r), value: group.r});
  314. });
  315. return result;
  316. }
  317. get selectedLinkOptions() {
  318. let result = [];
  319. if (!this.ready)
  320. return result;
  321. const index = lu.getRootIndexByUrl(this.libs.groups, this.rootLink);
  322. if (index >= 0) {
  323. this.libs.groups[index].list.forEach(link => {
  324. result.push({label: (link.c ? link.c + ' ': '') + lu.removeOrigin(link.l), value: link.l});
  325. });
  326. }
  327. return result;
  328. }
  329. openBookUrlInFrame() {
  330. if (this.bookUrl) {
  331. this.goToLink(lu.addProtocol(this.bookUrl));
  332. }
  333. }
  334. goToLink(link) {
  335. if (!this.ready)
  336. return;
  337. this.frameSrc = this.makeProxySubst(link);
  338. this.frameVisible = false;
  339. this.$nextTick(() => {
  340. this.frameVisible = true;
  341. this.$nextTick(() => {
  342. this.$refs.frame.contentWindow.focus();
  343. });
  344. });
  345. }
  346. getCommentByLink(list, link) {
  347. const item = lu.getListItemByLink(list, link);
  348. return (item ? item.c : '');
  349. }
  350. makeProxySubst(url, reverse = false) {
  351. for (const [key, value] of Object.entries(proxySubst)) {
  352. if (reverse && value == url.substring(0, value.length)) {
  353. return key + url.substring(value.length);
  354. } else if (key == url.substring(0, key.length)) {
  355. return value + url.substring(key.length);
  356. }
  357. }
  358. return url;
  359. }
  360. selectAllOnFocus(event) {
  361. if (event.target.select)
  362. event.target.select();
  363. }
  364. rootLinkInput() {
  365. this.updateSelectedLink();
  366. this.updateStartLink();
  367. }
  368. selectedLinkInput() {
  369. this.updateStartLink();
  370. }
  371. submitUrl() {
  372. if (this.bookUrl) {
  373. this.sendMessage({type: 'submitUrl', data: {
  374. url: this.makeProxySubst(lu.addProtocol(this.bookUrl), true),
  375. force: true
  376. }});
  377. this.bookUrl = '';
  378. if (this.libs.closeAfterSubmit)
  379. this.close();
  380. }
  381. }
  382. addBookmark(mode = 'add', link = '', desc = '') {
  383. if (mode == 'edit') {
  384. this.editBookmarkLink = this.bookmarkLink = link;
  385. this.editBookmarkDesc = this.bookmarkDesc = desc;
  386. } else {
  387. this.bookmarkLink = (this.bookUrl ? this.makeProxySubst(lu.addProtocol(this.bookUrl), true) : '');
  388. this.bookmarkDesc = '';
  389. }
  390. this.addBookmarkMode = mode;
  391. this.addBookmarkVisible = true;
  392. this.$nextTick(() => {
  393. this.$refs.bookmarkLink.focus();
  394. this.$refs.defaultRootLink.toggleOption = this.toggleOption;
  395. });
  396. }
  397. updateBookmarkLink() {
  398. const index = lu.getRootIndexByUrl(rstore.libsDefaults.groups, this.defaultRootLink);
  399. if (index >= 0) {
  400. this.bookmarkLink = rstore.libsDefaults.groups[index].s;
  401. this.bookmarkDesc = this.getCommentByLink(rstore.libsDefaults.groups[index].list, this.bookmarkLink);
  402. } else {
  403. this.bookmarkLink = '';
  404. this.bookmarkDesc = '';
  405. }
  406. }
  407. defaultRootLinkInput() {
  408. this.updateBookmarkLink();
  409. }
  410. bookmarkLinkKeyDown(event) {
  411. if (event.key == 'Enter') {
  412. this.$refs.bookmarkDesc.focus();
  413. event.preventDefault();
  414. }
  415. }
  416. bookmarkDescKeyDown(event) {
  417. if (event.key == 'Enter') {
  418. this.okAddBookmark();
  419. }
  420. }
  421. async okAddBookmark() {
  422. if (!this.bookmarkLink)
  423. return;
  424. const link = (this.addBookmarkMode == 'edit' ? lu.addProtocol(this.editBookmarkLink) : lu.addProtocol(this.bookmarkLink));
  425. let index = -1;
  426. try {
  427. index = lu.getRootIndexByUrl(this.libs.groups, link);
  428. } catch (e) {
  429. await this.$root.stdDialog.alert('Неверный формат ссылки', 'Ошибка');
  430. return;
  431. }
  432. let libs = _.cloneDeep(this.libs);
  433. //добавление
  434. //есть группа в закладках
  435. if (index >= 0) {
  436. const item = lu.getListItemByLink(libs.groups[index].list, link);
  437. //редактирование
  438. if (item && this.addBookmarkMode == 'edit') {
  439. if (item) {
  440. //редактируем
  441. item.l = link;
  442. item.c = this.bookmarkDesc;
  443. this.commitLibs(libs);
  444. } else {
  445. await this.$root.stdDialog.alert('Не удалось отредактировать закладку', 'Ошибка');
  446. }
  447. } else if (!item) {
  448. //добавляем
  449. if (libs.groups[index].list.length >= 100) {
  450. await this.$root.stdDialog.alert('Достигнут предел количества закладок для этого сайта', 'Ошибка');
  451. return;
  452. }
  453. libs.groups[index].list.push({l: link, c: this.bookmarkDesc});
  454. this.commitLibs(libs);
  455. } else if (item.c != this.bookmarkDesc) {
  456. if (await this.$root.stdDialog.confirm(`Такая закладка уже существует с другим описанием<br>` +
  457. `Заменить '${this.$sanitize(item.c)}' на '${this.$sanitize(this.bookmarkDesc)}'?`, ' ')) {
  458. item.c = this.bookmarkDesc;
  459. this.commitLibs(libs);
  460. } else
  461. return;
  462. } else {
  463. await this.$root.stdDialog.alert('Такая закладка уже существует', ' ');
  464. return;
  465. }
  466. } else {//нет группы в закладках
  467. if (libs.groups.length >= 100) {
  468. await this.$root.stdDialog.alert('Достигнут предел количества различных сайтов в закладках', 'Ошибка');
  469. return;
  470. }
  471. //добавляем сначала группу
  472. libs.groups.push({r: lu.getOrigin(link), s: link, list: []});
  473. index = lu.getRootIndexByUrl(libs.groups, link);
  474. if (index >= 0)
  475. libs.groups[index].list.push({l: link, c: this.bookmarkDesc});
  476. this.commitLibs(libs);
  477. }
  478. this.addBookmarkVisible = false;
  479. }
  480. fullScreenToggle() {
  481. this.fullScreenActive = !this.fullScreenActive;
  482. if (this.fullScreenActive) {
  483. this.$q.fullscreen.request();
  484. } else {
  485. this.$q.fullscreen.exit();
  486. }
  487. }
  488. transparentLayoutClick() {
  489. this.transparentLayoutVisible = false;
  490. }
  491. onSelectPopupShow() {
  492. this.transparentLayoutVisible = true;
  493. }
  494. onSelectPopupHide() {
  495. this.transparentLayoutVisible = false;
  496. }
  497. close() {
  498. this.sendMessage({type: 'close'});
  499. }
  500. bookUrlKeyDown(event) {
  501. if (event.key == 'Enter') {
  502. this.submitUrl();
  503. event.preventDefault();
  504. }
  505. }
  506. bookmarkSettings() {
  507. this.bookmarkSettingsActive = true;
  508. this.$nextTick(() => {
  509. this.$refs.bookmarkSettings.init();
  510. });
  511. }
  512. closeBookmarkSettings() {
  513. this.bookmarkSettingsActive = false;
  514. }
  515. keyHook(event) {
  516. if (this.$root.rootRoute() == '/external-libs') {
  517. if (this.$root.stdDialog.active)
  518. return false;
  519. if (this.bookmarkSettingsActive && this.$refs.bookmarkSettings.keyHook(event))
  520. return true;
  521. if (this.addBookmarkVisible)
  522. return false;
  523. if (event.type == 'keydown' && event.key == 'F4') {
  524. this.addBookmark();
  525. return true;
  526. }
  527. if (event.type == 'keydown' && event.key == 'Escape' &&
  528. (document.activeElement != this.$refs.rootLink.$refs.target || !this.$refs.rootLink.menu) &&
  529. (document.activeElement != this.$refs.selectedLink.$refs.target || !this.$refs.selectedLink.menu)
  530. ) {
  531. this.close();
  532. return true;
  533. }
  534. }
  535. return false;
  536. }
  537. }
  538. //-----------------------------------------------------------------------------
  539. </script>
  540. <style scoped>
  541. .separator {
  542. height: 1px;
  543. background-color: #A0A0A0;
  544. }
  545. .full-screen-button {
  546. width: 30px;
  547. height: 30px;
  548. cursor: pointer;
  549. }
  550. .full-screen-button:hover {
  551. background-color: #69C05F;
  552. }
  553. .transparent-layout {
  554. top: 0;
  555. left: 0;
  556. position: absolute;
  557. }
  558. </style>