return a simple promise
It’s easy but I keep forgetting. I have a function that triggers an axios request and returns it as a promise – unless the value is already there. In that case I want to return a simple promise with just […]
I am Ophidia, programmer.
It’s easy but I keep forgetting. I have a function that triggers an axios request and returns it as a promise – unless the value is already there. In that case I want to return a simple promise with just […]
Submitting form data with upload fields is made very easy with formdata. Of course, that means some older browsers will not support it. In this case, it was Safari. There was no feasible error message, the targeted php file just […]
After inserting a map with google api (v3), the map wouldn’t show anything but grey and the buttons were weirdly distorted: Seems that bootstrap is the culprint, adding this to my stylesheet worked: #map-canvas img { max-width: none !important; }
The problem: I created a website which requires the user to watch an animation for five minutes without doing anything else, ie touch the screen. This works just fine on a desktop computer, but mobile is a different story. When […]
It’s actually a very small problem. When clicking on a certain DIV, I want a page to open in a new tab (!). Making the div a Link instead was not an option, so I searched for different approaches. window.open […]
Okay, this cost me a lot of time and nerves. Todo: Videos coming from vimeo, they must be played in jwplayer. There must be a preroll ad, the URL to this video ad contains a 10-digit random number, which is […]
It took me a really long time to find out how to use the JW Player with the OVA Plugin, using the JW Embedder. So finally, this is the solution: jwplayer(“container”).setup({ ‘flashplayer’: “player.swf”, ‘width’: 700, ‘height’: 400, ‘file’: ‘video.mp4’, ‘plugins’: […]