- 2

How to show(run) my code bits codes in my smartphone browser.

As we can able to show(run) our html codes in smartphone browser in app like anwriter.

26th Apr 2020, 2:28 PM
Shaurya Yadav
Shaurya Yadav - avatar
13 Respuestas
+ 2
Can you login to SL and open your profile page? From your profile page choose Codes section and try to open one of your codes. Does it work so far? Note that you can also share saved code links, and use it to access your code by pasting the link in browser address bar. I'm afraid I'm not understanding your situation. Still not sure what the problem is.
26th Apr 2020, 2:55 PM
Ipang
+ 1
Provide more details ... Are you having difficulty trying to run your code in browser? or you are looking for ways to run your code offline? answer to either one of these will be different
26th Apr 2020, 2:39 PM
Ipang
+ 1
Actually I am unaware to run code bits code in my phone browser. How can I do this?That after writing my code instead of run my code in output. I can run this in my phone browser. I hope you got it.
26th Apr 2020, 2:45 PM
Shaurya Yadav
Shaurya Yadav - avatar
+ 1
No problem sir. I get it. Thanks
26th Apr 2020, 2:59 PM
Shaurya Yadav
Shaurya Yadav - avatar
+ 1
Ok, what about anwriter?
26th Apr 2020, 3:56 PM
Shaurya Yadav
Shaurya Yadav - avatar
+ 1
Shaurya Yadav You can use it too i guess
26th Apr 2020, 3:57 PM
Ore
Ore - avatar
0
Sololearn does not have the feature. However do this: 1. Save your html code as page.html in your file system 2. Save your css as style.css in the same folder 3. Save your JavaScript as script.js in that same folder 4. In your html head tag, write the following <link rel="stylesheet" href="style.css"> <script src="script.js"></script> 5. Go to your file explorer and click the page.html file to open in browser
26th Apr 2020, 3:28 PM
Ore
Ore - avatar
0
Sir, How to save my html code in my file explorer?
26th Apr 2020, 3:46 PM
Shaurya Yadav
Shaurya Yadav - avatar
0
Open a text editor like Notepad on Windows. Type in the code and hit 'save as'. Change file type to All files and save as 'page.html'
26th Apr 2020, 3:48 PM
Ore
Ore - avatar
0
Can I do this in my smartphone? If yes then, How?
26th Apr 2020, 3:49 PM
Shaurya Yadav
Shaurya Yadav - avatar
0
Shaurya Yadav to do this in your phone. Download a text editor like DroidEdit for Android
26th Apr 2020, 3:54 PM
Ore
Ore - avatar
0
Usually if u want to see in browser then u can't link a offline css Or javascript file with it as usually mobile browsers don't read it But you can do everything in one page like For css do -- <style> /* code goes here*/ </style> For javascript do -- <script> // code goes here </script>
27th Apr 2020, 6:27 AM
Krish
Krish - avatar
- 1
;(function() { const ifw = { tpl: { player: function(videoId) { return ( '<div style="margin-bottom: 10px; position: relative; padding-bottom: 56%; padding-top: 35px; height: 0; overflow: hidden;">' + '<iframe style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;" src="https://vod-api.infowars.com/embed/' + videoId + '" frameBorder="0" allowfullscreen></iframe>' + '</div>' ) }, }, player: { init: function() { var players = document.querySelectorAll('.ifw-player:not(.expanded)') players.forEach(player => { var videoId = player.getAttribute('data-video-id') player.innerHTML = ifw.tpl.player(videoId) player.className += ' expanded' }) }, }, } ifw.player.init() })()
27th Apr 2020, 12:12 AM
Jeremiah Rose