just playing around with RSS Feed Import Display with FeedEK
Created
August 22, 2023 16:32
-
-
Save landsurveyorsunited/ab48b57877248a02abac0d704f2deced to your computer and use it in GitHub Desktop.
RSS Feed Import Display with FeedEK
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="example">RSS Feed FeedEK</div> | |
| <div id="divRss"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function(){ | |
| $('#divRss').FeedEk({ | |
| FeedUrl : 'https://landsurveyorsunited.com/video/feed/all' | |
| }); | |
| var r = Math.floor(Math.random()*256); | |
| var g = Math.floor(Math.random()*256); | |
| var b = Math.floor(Math.random()*256); | |
| $('#example, .itemTitle a').css("color", getHex(r,g,b)); | |
| $('#example').click(function() { | |
| $('.itemTitle a').css("color", getHex(r,g,b)); | |
| }); | |
| function intToHex(n){ | |
| n = n.toString(16); | |
| if( n.length < 2) | |
| n = "0"+n; | |
| return n; | |
| } | |
| function getHex(r, g, b){ | |
| return '#'+intToHex(r)+intToHex(g)+intToHex(b); | |
| } | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
| <script src="http://jquery-plugins.net/FeedEk/FeedEk.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .feedEkList{width:450px; list-style:none outside none;background-color:#FFFFFF; border:1px solid #D3CAD7; padding:4px 6px; color:#3E3E3E;} | |
| .feedEkList li{border-bottom:1px solid #D3CAD7; padding:5px;} | |
| .feedEkList li:last-child{border-bottom:none;} | |
| .itemTitle a{font-weight:bold; color:#000000; text-decoration:none } | |
| .itemTitle a:hover{ text-decoration:underline } | |
| .itemDate{font-size:11px;color:#AAAAAA;} | |
| #example { color:#a12712;font-weight: bold; cursor: pointer;} | |
| img {width:100%} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment