|
|
(3 intermediate revisions by the same user not shown) |
Line 4: |
Line 4: |
| <!-- Placeholder for the widget content --> | | <!-- Placeholder for the widget content --> |
| </div> | | </div> |
| <script type="text/javascript">
| |
|
| |
|
| |
| function getDeviceType() {
| |
| const userAgent = navigator.userAgent.toLowerCase();
| |
|
| |
| if (userAgent.includes('mobile') || userAgent.includes('android') || userAgent.includes('iphone') || userAgent.includes('ipad')) {
| |
| return 'mobile';
| |
| } else if (userAgent.includes('tablet')) {
| |
| return 'tablet';
| |
| } else {
| |
| return 'desktop';
| |
| }
| |
| }
| |
|
| |
| if (getDeviceType() === "desktop") {
| |
| document.write("{{#widget:Iframe|url=https://bnbforms.com/103014/|width=600|height=700|border=0}}");
| |
| } else {
| |
| document.write("{{#widget:Iframe|url=https://bnbforms.com/103014/|width=300|height=700|border=0}}");
| |
| }
| |
|
| |
| </script>
| |
| </includeonly> | | </includeonly> |