踩到Window resize在Preview print的雷
最近在作案的過程中遇到一個狀況,從Art design那邊拿到的頁面,會在Window resize的時候執行某個Function,本來一切都正常,但測試到Chrome和Firefox預覽列印時發現也會Trigger這個Event,會讓在預覽列印過後的頁面發生問題,所以必須要進行修正,以下是這個案例的說明:
先在測試頁加入以下的程式,發現在預覽列印的時候會Trigger window resize event:
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Preview Print Test</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script> $(window).resize(function() { console.log("Window Resize"); }); </script> </head> <body> <h1>Window Resize Test</h1> </body> </html>
網路上搜尋了一下解決方案,將Script改寫如下,可以順利解決,但不知道是不是最好的方法,如果大家有更好的也別忘了告訴我唷~
openResizeFn(); // Chorme var print = false; var mediaQueryList = window.matchMedia('print'); mediaQueryList.addListener(function (mql) { if (mql.matches) { closeResizeFn(); } else { setTimeout(openResizeFn, 2000); } }); // Firefox window.onbeforeprint = function () { closeResizeFn(); }; window.onafterprint = function () { setTimeout(openResizeFn, 2000); }; // Common Function function openResizeFn() { $(window).on("resize", windowResize); } function closeResizeFn() { $(window).off("resize", windowResize); } function windowResize() { console.log("Window Resize"); }
glucophage 1000mg cost – order lipitor 40mg without prescription buy amlodipine generic
4trp7
0k24w
72gz
buy ivermectin online cost of ivermectin cream
Alex Ralph
Unquestionably, the best way to remember a phone number or email address is to jot it down in a notebook or on a post-it note. But, that won’t do if your notebook starts to fall into a drawer. This is where paperless contact strips help. Stashpaper.net provides free Photoshop Mobile PDF contact strips for you to make files of your own.
With different sizes and shapes available, you can create your own contact strips for all http://www.ndvadvisers.com/yamaha-cs80-profesyonel-org-programi-indir-top/
ec5d62056f newmocta
Did you find what you’re looking for?
Sponsors
We have a huge number of sponsors for Bing Stack, and it’s all about saving time. Instead of having to navigate this site and search for the information you need, start your research on your favorite topics right from the comfort of your browser.
Our sponsors will help you stay on top of what’s new in the IT industry, up-to-date with tech and software, and provide the resources you https://corosocial.com/upload/files/2022/06/PKABSs18nQ6G3jNascjU_04_5bddd968f903459b05d1b36e5400712c_file.pdf
ec5d62056f dalbird
http://erythromycin1m.com/# fougera erythromycin ophthalmic ointment
You can invoke this application and change status of Skype from toolbar, from Notification area or from the shell. You can set its icon and hide it using Vista skins.
Provides 3 extensions: “Notify Me” (add to tray), “Search” and “Switch”. Extensions is a new feature, works as window popup menu.
Desktop icon feature is: plugin (not compatible with third-party Skype, add on, etc). This feature increases functionality, performance
To start use https://dragalacoaching1.com/wp-content/uploads/2022/06/wasuhi.pdf
ec5d62056f robiand
The media can be ripped or streamed to the filter, then encoded, compressed and streamed to the media servers.
If the tool gets a Video Renderer, it can also sync with other applications that handle media files, such as Windows Media Player or VLC. Multipurpose DirectShow Encoder supports the downscaling of the media, according to the size of your desktop window. You can select the encoder and video driver settings, then test it with its internal viewer.
Media https://bodhirajabs.com/wp-content/uploads/2022/06/margvayl.pdf
ec5d62056f kelpepi
Features:– Hijri Calendar displays the lunar dates of every month of the year in both single and dual months– You can navigate using labels as well as date numbers, even when the title is replaced by dots– You can also browse the months by clicking on a date label– The months list is configured by default according to the Persian calendar system. The user can switch back to the Gregorian calendar by selecting “Persian” from the interface– You can add notes and enter the tool https://monarch.calacademy.org/checklists/checklist.php?clid=2739
ec5d62056f latkap
Download Windows version:
Download OSX version:
***
Disclaimer: GetPocket has an optional paid version. This tool will sync some basic informations about your Pocket account.
***
This video is a step-by-step instruction on how to send files from your Windows PC to your Pocket account (iOS and Android).
Hope you like it. 🙂 https://blooder.net/upload/files/2022/06/ctRD6VWjhaindHVooMZc_04_a83523c71703a4c6560e9f61c0f1f8ea_file.pdf
ec5d62056f melorai
What is new in official Trick or Treat Windows 7 Theme release version?
Some bug fixes and minor improvements.
System requirements
Trick or Treat Windows 7 Theme
Supported Display Modes:
Standard
Custom
Proprietary
Device support
Tablet
Windows Mobile
See also
List of Windows 7 Themes
References
External links
Download Trick or Treat Windows 7 Theme
Category:Windows 7
Category:Windows 7 themes https://csvcoll.org/portal/checklists/checklist.php?clid=8160
ec5d62056f targra
First you need to get yourself off this list. You have never been on here.
Becky Pham
11/28/2000 01:49 PM
To: Kathy Campbell/ET&S/Enron, Lindy Donoho/ET&S/Enron
cc:
Subject: ETS Teams?
If we did submit all the valid ETS teams without canceling any off, we will
have the highest https://freesepapimnerpie.wixsite.com/centdacule/post/dvd-architect-pro-6-0-keygen-download-_verified_
ec5d62056f ximefes
https://www.ticonsiglioperche.it/autodesk-inventor-2014-download-__full__-crack/internet-businessebooks/
f77fa6ce17 fredamal
buy hydroxychloroquine 400mg online cheap – order baricitinib 2mg pill baricitinib 4mg canada
https://stromectolgf.online/# ivermectin pills canada
ivermectin tablets ivermectin 1
f64l3
ax1jy
1rv6
Pros:
Simple interface.
Easy to install and easy to configure.
Easy to use.
The only downside is that you need to deal with failed autoruns in case an infected USB drive is plugged into the system.
Bottom Line: NoVirusThanks Anti-AutoExec protects your computer from malware by disabling its autorun file on USB devices.
#4: Combofix is a powerful system optimization tool that will safely clean your computer free of the most stubborn https://www.nyctherapygroup.com/profile/kinggattrelsaumilin/profile
66cf4387b8 elioliv
For stats we don’t have a website for the moment but you can see our records on our forum.
Features:
* Online Messaging system
* Intra VPN system
* Save status for all your favourite names
* Upcoming statuses for friends and contacts
* Friendly GUI
* Supports up to 24 different servers of Instant Messaging
* Supports 5 languages (english, german, french, spanish, portuguese, dutch, polish, d https://www.blackdvmnetwork.com/profile/Ansoft-Designer-7-Crack-WORK/profile
66cf4387b8 ualgool
DISCLAIMER: Unauthorized usage of APPLE trademarks, software and other products are PROHIBITED.
System 2.0 has been updated to support most new tablets such as Amazon Kindle HDX series which support Fire OS 5.0(or 5.1). Also support devices including Nexus 7, Eee Pad Transformer Prime, Kindle Fire, HP Slate, BQ Aquaris X2(Pesektor, Catalunya), Optimus Black(Clero, https://www.aorhope.org/profile/porsadeadficole/profile
66cf4387b8 ambjan
This application can handle files of various types, such as pictures, HTML text, and even text documents, without a problem. Apart from handling clipboard content, Shapeshifter is able to browse the Computer, the Local Disk (C:), the Network locations (S:), as well as FTP locations. As for the mouse operations, it is used in conjunction with the hotkey combo “M+R” (for long-click) for selecting files, opening their properties, or ren https://www.lochielhouse.com.au/profile/Download-Ebook-Cooperative-Learning-Anita-Lie/profile
66cf4387b8 valmar
Simply drag the text over the regions you want to highlight, then hit Ctrl+V, and that’s it!
ZoomText can be used for individual text objects on the desktop or in various application windows. It is possible to define a number of shortcuts so that users can quickly access the four magnified views.
ZoomText is very simple and intuitive to use, and it does not require any special training. Supported operating systems: Windows 2000, Windows 98, Windows 95, Windows ME https://www.bharatiya-temple.org/profile/unorantkonterbump/profile
66cf4387b8 zavvol
erythromycin ophthalmic eye drops http://erythromycin1m.com/#
This can be done using Windows Administrative Tools and the default app manager, but you can also access it by clicking the Start menu and typing Default App Manager.
It is a free program, available for Windows 7 and 8 users, but it comes in a Windows 10-specific version. In the future, it could be integrated with Windows 10 and you would be able to toggle whether Edge is blocked or not without even launching the app. When you invoke Edge Blocker, the user interface screen will allow https://www.conida.gob.pe/profile/AutoCAD-April2022/profile
99d5d0dfd0 benzube
clindamycin vs erythromycin
order lasix 40mg without prescription – stromectol buy canada stromectol for human
http://erythromycinn.com/# what is erythromycin
oral prednisolone – cost viagra 150mg oral viagra 100mg
erythromycin fish
amoxil 500mg for sale – viagra mail order sildenafil over the counter