Created
August 19, 2019 09:49
-
-
Save Jursdotme/2561a1ab16c89e9bdc959ce34513c046 to your computer and use it in GitHub Desktop.
Get results from ManageWP
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
function(){$( 'body' ).prepend( '<pre class='mylist'></pre>' ); | |
var resultat = [] | |
$( "'.website-name' ).each(function( index ) { | |
resultat.push($( this ).text()); | |
}); | |
var items = resultat; | |
var cList = $('.mylist'); | |
items.map( (item,i ) => { | |
var li = $('<li/>') | |
.appendTo(cList); | |
$('<a>' + item + '<a/>') | |
.appendTo(li); | |
}); | |
}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment