Blog Comments

  1. molendijk's Avatar
    I rewrote the whole thing because the converter was a little bit too simple and not user-friendly. Also, the instructions were not elaborate enough and the examples too few in number and diversity. I hope it will better serve its purpose now.
  2. Beverleyh's Avatar
    Yes. Centering is all fine now in the 4 popular iOS browsers mentioned earlier
  3. molendijk's Avatar
    Splendid! That caused the problem in Safari (and maybe on iOS, I can't check that). Thanks.
    I've corrected the error. You may have to refresh the page to see the change.
    In the meantime, I'm working on a way to do it without the translate method, just to be sure.
  4. Beverleyh's Avatar
    Apparently, the translate() method is not supported (yet) on iOS.
    Hmmm, translate in CSS transforms works fine in iOS - I think it's down to an error in your syntax (a missing % at the end of the WebKit vendor prefix lines)
    Code:
    -webkit-transform: translate(-50%, -50);
  5. molendijk's Avatar
    Thanks for the feedback, Beverleyh!
    At a desktop and with my ASUS-tablet, it works on all modern browsers/WIN, Chrome/WIN included. Only one tap needed.
    Apparently, the translate() method is not supported (yet) on iOS.
    I knew about your popup image viewer, but I wanted non-modal images with a close button at the top/right
    Thanks again,
    Arie.
    ===
    EDIT: even at a desktop, it does not work with Safari/WIN. I'll see what can be done about it.
    Updated 04-07-2015 at 09:59 AM by molendijk (Correction)
  6. Beverleyh's Avatar
    Hi Arie,

    Just some feedback from Safari, Chrome, Dolphin and Mercury browsers on iOS (iPhone 5S and iPad)

    - in Mercury, the new tab/window popup does not open at all.

    - in all browsers, 2 taps are required to activate the in-page image (not a biggie - I think folks would just assume that they missed it the first time).

    - in all browsers, the image (new tab and in-page) is unfortunately not centered (the top corner is at 50%, 50%), and the [X] on the top right corner of the image is unreachable off the edge of the screen, meaning that it can't be closed.

    I'm not at a desk today so I'm unable to test further, but maybe you can take something from the centering CSS I used for my popup image viewer here http://fofwebdesign.co.uk/template/_...odal-popup.htm
    Updated 04-07-2015 at 09:07 AM by Beverleyh
  7. molendijk's Avatar
    I found a way to not only apply javascript to the videos loaded in an existing (HTML) iframe, but also to their different states. If we want to run code depending on the player's state, we must do
    Code:
    onload="some_player=new YT.Player(this ,{events: {'onStateChange':function(e){if(e.data === some_state){some_function()}}}})"
    See this for all the details.
  8. molendijk's Avatar
    Here are two examples:
    Code:
    <head>
    <script src="http://www.youtube.com/player_api"></script> 
    </head>
    
    <body>
    <div style="position: relative; width: 319px">
    <div style="position: relative; text-align: center">
    <button style="cursor: pointer" onclick="player1.loadVideoById('bKZbvluHcNo')">(re)start</button>
    <button style="cursor: pointer" onclick="player1.playVideo()">play</button>
    <button style="cursor: pointer" onclick="player1.pauseVideo()">pause</button><br>
    <button style="cursor: pointer" onclick="player1.seekTo(player1.getDuration())">stop</button>
    <button style="cursor: pointer" onclick="player1.unMute()">sound on</button>
    <button style="cursor: pointer" onclick="player1.mute()">sound off</button>
    </div>
    <iframe style="position: relative; width: 319px; height: 280px;  border: 1px solid black; " src="http://www.youtube.com/embed/bKZbvluHcNo?html5=1&amp;enablejsapi=1&amp;autoplay=0&amp;rel=0&amp;showinfo=0&amp;modestbranding=1&amp;controls=1&amp;autohide=0&amp;vq=large" frameborder="0" allowfullscreen onload="player1=new YT.Player(this)"></iframe>
    </div>
    
    <div style="position: relative; width: 319px">
    <div style="position: relative; text-align: center">
    <button style="cursor: pointer" onclick="player2.loadVideoById('OsLap6ZNNQo')">(re)start</button>
    <button style="cursor: pointer" onclick="player2.playVideo()">play</button>
    <button style="cursor: pointer" onclick="player2.pauseVideo()">pause</button><br>
    <button style="cursor: pointer" onclick="player2.seekTo(player2.getDuration())">stop</button>
    <button style="cursor: pointer" onclick="player2.unMute()">sound on</button>
    <button style="cursor: pointer" onclick="player2.mute()">sound off</button>
    </div>
    <iframe style="position: relative; width: 319px; height: 280px;  border: 1px solid black; " src="http://www.youtube.com/embed/OsLap6ZNNQo?html5=1&amp;enablejsapi=1&amp;autoplay=0&amp;rel=0&amp;showinfo=0&amp;modestbranding=1&amp;controls=1&amp;autohide=0&amp;vq=large" frameborder="0" allowfullscreen onload="player2=new YT.Player(this)"></iframe>
    </div>
    </body>
  9. molendijk's Avatar
    Also try http://fiddle.tinymce.com to customize the editor's toolbar. It works very well. Here's an example.
  10. molendijk's Avatar
    I revised the script so as to make it possible to not only load files into divs on page load but also on click, using one and the same script.
  11. molendijk's Avatar
    I was not happy with the fact that the old script didn't allow us to write html (into the alerts) in the normal way. So I revised it. I also added the possibility to dynamically size the window.
    You can find the new script plus demos and explanations here.
  12. molendijk's Avatar
    I've once more revised the script. (Hope this is the last revision). The cleantube URLS/links are shorter now, and they contain an optional parameter for info on each cleantube video.
    We can now do things like:
    http://mesdomaines.nu/cleantube?v=ROVy9PC8_8A
    http://mesdomaines.nu/cleantube?v=ROVy9PC8_8A?start=20&info=Very good Chopin playing
    http://mesdomaines.nu/cleantube?v=ROVy9PC8_8A?start=20&end=50&playlist=4pyqLbi2wLU,mUVCGsWhwHU&info=This is a nice playlist
    etc.

    Click on http://mesdomaines.nu/cleantube/cleantube_expl.html for more info.
  13. molendijk's Avatar
    I made the whole thing a bit more elegant. You can now use URLs / strings like http://www.mesdomaines.nu/cleantube?...ide=0&vq=large to show YouTube without the distractions.
    For the details, go to http://www.mesdomaines.nu/cleantube and click on 'about this page'.

    EDIT: THIS IS NOW DEPRECATED. SEE COMMENT BELOW.
    Updated 04-06-2014 at 05:50 PM by molendijk (Script revision)
  14. molendijk's Avatar
    http://s.ytimg.com/yts/swfbin/player-vfle5oFqK/watch_as3.swf?eurl=http://safeshare.tv&video_id=YOUTUBE-VIDEO-ID doesn't work anymore. You have to use this now:
    http://s.ytimg.com/yts/swfbin/player-vflyJCJXc/watch_as3.swf?eurl=http://safeshare.tv&video_id=YOUTUBE-VIDEO-ID.
  15. Beverleyh's Avatar
    Oh no, sorry, I thought you meant the Fast Edit site. I haven't got around to 'responsifying' the FoF site yet.
  16. molendijk's Avatar
    Quote Originally Posted by Beverleyh
    I made a few changes to the original CSS so maybe when you viewed it the first time, the stuff that gave horizontal scrollbars was present from the cached CSS. I think that on the second view, the revised CSS loaded in and corrected it
    Are we both referring to http://fofwebdesign.co.uk/?
  17. Beverleyh's Avatar
    I made a few changes to the original CSS so maybe when you viewed it the first time, the stuff that gave horizontal scrollbars was present from the cached CSS. I think that on the second view, the revised CSS loaded in and corrected it

    Your script is weeny! I cant believe just a few short lines has such a drastic effect - that's very handy. Its a pretty neat solution.

    I want to work more with responsive design too, but I think I should try to work on the basis of "mobile first" - I did the Fast Edit website the wrong way round (by making a 'full version' and then scaling down), which has put a bit more CSS in play than really there needs to be. Plus its a hybrid of both responsive and adaptive approaches since it uses scalable % and em measurements within the boundaries of media query breakpoints. It was fun though.
  18. molendijk's Avatar
    Quote Originally Posted by Beverleyh
    Its funny you posted this when you did Arie - I just was just working on making my Fast Edit website responsive/adaptive and it was very useful to see all the screen widths alongside each other using the Matt Kersley tool: http://fast-edit.co.uk/rwd/Thanks for sharing
    A funny coincidence indeed. Btw, I put your own website to the test using http://fast-edit.co.uk/rwd/. Result: horizontal scroll bars. But http://fast-edit.co.uk/rwd itself is perfect.
    EDIT: Beverleyh, I'm getting interested in tnis responsive/liquid thing, see this.
    Updated 09-30-2013 at 08:22 PM by molendijk
  19. Beverleyh's Avatar
    Well those are certainly much easier than playing "draggy" with the browser window

    Just to help out those who might not see where to get to the responsive view in Firefox;

    - press ALT (in Windows) to display the menu bar if you don't already have it
    - Tools >> Developer >> Resonsive Design View

    OR, press CTRL+Shift+M

    Its funny you posted this when you did Arie - I just was just working on making my Fast Edit website responsive/adaptive and it was very useful to see all the screen widths alongside each other using the Matt Kersley tool: http://fast-edit.co.uk/rwd/

    Thanks for sharing
    Updated 09-30-2013 at 06:16 PM by Beverleyh
  20. molendijk's Avatar
    Talking about Responsive Web Design:
    you can test your site here.
Page 1 of 3 123 LastLast