I am developing a PWA following google recommendations and my splash screen is showing correctly after user has added it to their home screen.
I wonder if there is any way to configure some custom delay time the splash screen should show. I need to set a minimum 2˜3 seconds delay so the user can see the company logo in it. Sometimes it shows and expires very fast like 200ms, and sometimes it shows up to 10 seconds, i just want to set a minimum time. Is it possible? Didn't find any reference on PWA's documentation...
One thing i've tried is to set a "second" splash screen but this is not good in cases where the native splash screen lasts up to 10 seconds, then it shows my custom splash screen again (bad user experience)...
This is my manifest.json:
{
"name": "Some application",
"short_name": "Sa",
"lang": "pt-BR",
"start_url": "/",
"display": "standalone",
"theme_color": "#FFFFFF",
"icons": [
{
"src": "assets/icons/192x192.png",
"sizes": "192x192"
}
],
"background_color": "#FFFFFF"
}
I've found out that this feature is not possible yet, but there are several discussions on this subject happening, like this one below. Apperently some improvements on how you can customize the splash screen are being tested for over a year:
https://github.com/w3c/manifest/issues/589#issuecomment-323232119
Related
I don't know why, the example in the document can display the icon, but the one I wrote does not display
enter image description here
this.SpecChart.addOnScreenMenu(
[
[
// Default buttons
OnScreenMenuButtonType.ZoomInX,
OnScreenMenuButtonType.ZoomOutX,
OnScreenMenuButtonType.ZoomInY,
OnScreenMenuButtonType.ZoomOutY,
OnScreenMenuButtonType.ZoomToFit,
OnScreenMenuButtonType.ToggleAnimations,
// cusrom button
{
dimensions: { rows: 1, columns: 1 },
label: "Show Heatmap",
opacity: "1",
color: "blue",
shape: OnScreenMenuButtonShape.RoundedRectangle,
action: this.show,
},
],
],
OnScreenMenuButtonShape.RoundedRectangle
);
Probably this is caused by LightningChart not having access to its resources folder. The OnScreenMenu pictures are distributed in a resources folder along with the library, but the library itself doesn't know where it is located.
Here's a link to the related item in API documentation to learn more: https://www.arction.com/lightningchart-js-api-documentation/v3.4.0/interfaces/lightningchartoptions.html#resourcesbaseurl
A quick and dirty fix you can try is the following code snippet which tells LightningChart to look for the resources folder from a CDN service - this is super slow and I would not advise to do this in any long term solution.
const chart = lightningChart({
resourcesBaseUrl: "https://cdn.jsdelivr.net/npm/#arction/lcjs#3.4.0/dist/resources",
}).ChartXY();
// ... add OnScreenMenu inside the chart ...
For a long term solution, you'll have to download the resources folder to your project, setup a file server and supply the URL to the file server with resourcesBaseUrl option.
You have set: this.show. Is it not just show. And by the way. Where is your icon property by custom button?
The last one is a custom button. My question is that the first few yellow buttons do not display icons.I know custom button can set icon url
as you can see in the image
When an image is shared to a profile (not a Company) via the LinkedIn API v2 it displays as if it is cropped:
However, when I upload and share the same image on www.linkedin.com to my profile it does not show as cropped and the entire image is shown:
This is happening for both square and rectangular images. Looking a bit more closely it seems that LinkedIn is applying a different padding-top to the images shared via the API compared to those shared/uploaded on www.linkedin.com.
From API
From www.linkedin.com
Anyone else seeing this issue? It would be nice if images were presented consistently.
UPDATE: this is also happening when sharing to company pages, not just profiles.
An easy answer is to choose images with a 1.91:1 aspect ratio. I have found that those images do not get cropped nor pillarboxed.
In case that's not an option, the workaround I use is resending the image as a thumbnail, including the original image dimensions.
Here's an example of posting a 1000x600 image that is located at https://example.com/image.png
After uploading the image as rich media and getting the URN (urn:li:richMediaSummary:PNG-IMG-54f022ae8b3f4d479e925b4df68e19) from the response, post the Share with the URN as the content entity, and the url and dimensions of the image as a thumbnail.
{
"owner": "urn:li:person:324_kGGaLE",
"distribution": {
"linkedInDistributionTarget": {}
},
"content": {
"contentEntities": [
{
"entity": "urn:li:richMediaSummary:PNG-IMG-54f022ae8b3f4d479e925b4df68e19",
"thumbnails": [
{
"imageSpecificContent": {
"width": 1000,
"height": 600
},
"resolvedUrl": "https:\/\/example.com\/image.png"
}
]
}
]
}
}
I am trying to create custom user CSS for someone to use, that will remove all the extra stuff on a website they are viewing, except the body content. I figured I could use chromes inspect to get the sites CSS code, then edit it and use a custom user css extension on chrome to implement it. However the site has over 7000 lines of code in their CSS and I am still very new to CSS. Is there any simple way to make this work without having to go through 7000 lines of code?
Here is just a quick, bare-minimum, "prove of concept"-type starter of how you can achieve what you want using Firefox browser, just to get you going.
Create two files: manifest.json and RemoveStuff.js.
Put this inside manifest.json
{
"manifest_version": 2,
"name": "RemoveStuff",
"version": "1.0",
"content_scripts": [
{
"matches": ["*://*.google.com/*"],
"js": ["RemoveStuff.js"]
}
]
}
and put this inside RemoveStuff.js
document.getElementById("lga").outerHTML='';
Now using Firefox browser navigate to about:debugging, click Load Temporary Add-on and select RemoveStuff.js. Now go to google and you shouldn't see google's logo (or whatever picture/animation they have there).
You can start learning about Firefox extensions here, or Chrome here
I'm doing a report using Qliksense but when using a proyector you can barely see the numbers on the graphs.
Any ideas on how to modify the code of the program to increase number/text size overall?
A possible way to do that would be to use the themes in QlikSense. Yet they have limited functionality, but they may be able to help in your case.
You will have to go into your QlikSense themes directory, mine is under C:\Users\user\AppData\Local\Programs\Qlik\Sense\Client\themes. Here you will find the default themes (you can also create your own ones).
Create a copy of the folder sense which is the default theme (let's name this new folder senseModif from now on). Open the file theme.json from the new directory and play around with the values. For example if you want to set text sizes in a pie chart you can modify this segment:
"pieChart": {
...
"item": {
"name": {
"fontSize": {
"default": "50px",
"large": "50px",
"medium": "50px",
"small": "50px",
"tiny": "50px"
},
...
I already changed the fontSize values here for 50px. To see the result of this just go to the QS web interface, open your app, and open a sheet in it. You will have a similar url for the app: http://localhost:4848/sense/app/filenameofapp.qvf/sheet/GPUNXF/state/analysis/. Now just put theme/senseModif at the end of the url and it will now display the objects with your new styles.
As I said, at least for me, it's not working for every object type right now, but at least it's a start.
Much more on the themes and on their usage can be found here.
I am working on application which uses google maps.
When I zoom the map closer, a lot of useless (for the purpose of my app) appears. Here is the example:.
Not only I do not need any of the Casa Salvador, Liquid, Valeria Peluqueros things, they are also interactive (the mouse is changing on hover, you can click and popup appears).
I thought that I can easily disable them through google maps options, where I can disable default user interface and a lot of other things, but I failed to find any option related to my needs.
Does anyone have an idea how to:
completely remove the elements I listed
make them visible but not interactive
I have been going through the same problem.
1. To remove them you have apply custom styles to your map.
var styleArray = [
{
featureType: "poi.business",
elementType: "labels",
stylers: [
{ visibility: "off" }
]
}
];
map.setOptions({styles: styleArray});
This will remove all the business labels. For more help:
https://developers.google.com/maps/documentation/javascript/styling#creating_a_styledmaptype
exactly your answer I guess: http://jsfiddle.net/mrak/dHWVM/
Regards
Suyash