Comments (5)
Thank you, Ain, for providing clarification. I have an additional question. Is there a way to configure a global class for either the <html>
or <body>
tag when the smart banner is active?
from smartbanner.js.
Inclusion of the script is of course dependant on the individual project setup. The example use-case in the README is illustrational.
Please make sure that the smartbanner.min.js
and smartbanner.min.css
are placed with the rest of your CSS and JS assets so that the files are publicly accessible for end-users.
from smartbanner.js.
Do we need to manually copy both files from the package and place them in the assets folder? If that's the case, what happens when the package receives updates to these files? Is there a more efficient way to handle updates and ensure that our assets stay synchronized with the package changes?
from smartbanner.js.
It's a task that your local setup has to consider during the build and/or asset compilation. Exposing gigabytes of node_modules
to public is not a good idea.
from smartbanner.js.
Good question.
It is not directly possible, but what you could do is:
- use custom design modifier which adds a specific class not to the
body
orhtml
, but to the wrapper element which smartbanner is added to. - use smartbanner API and listen to
init
of smartbanner and add the global class tohtml
orbody
automatically whenever you have the smartbanner added, e.g.:
document.addEventListener('smartbanner.init', javascript_function_to_add_class_to_body);
from smartbanner.js.
Related Issues (20)
- Hide smart app banner in web app HOT 4
- Smartbanner for Huawei without Play Store HOT 1
- Smart Banner ios version displayed for touch screen enabled desktops HOT 1
- Angular 2+ compatibility HOT 1
- How to hide smartapp banner in webview apps HOT 1
- Why app banner is displaying in laptop screens, 1440 X 734 / 1366 X 768? HOT 8
- Is there a way to add two smart banners? HOT 1
- support for another language in content ? HOT 3
- min file no correctly exported? HOT 2
- Does it work in Angular? For me it is not showing HOT 1
- Unexpected token ')' when close banner HOT 1
- Invisible App Icon HOT 3
- Will view button be changed to open button if app is already installed in mobile(android or iOS ? HOT 1
- Windows Convertibles are recognized as iOS devices HOT 5
- Accessibility concern with tabbing to banner HOT 5
- smartbanner is visible on windows tab when enabled-platforms is set to android,ios HOT 3
- Error library when I use install with npm HOT 14
- Required content HOT 6
- Value for enabled-platforms HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smartbanner.js.