Skip to content

Instantly share code, notes, and snippets.

@Jursdotme
Created August 19, 2019 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jursdotme/2561a1ab16c89e9bdc959ce34513c046 to your computer and use it in GitHub Desktop.
Save Jursdotme/2561a1ab16c89e9bdc959ce34513c046 to your computer and use it in GitHub Desktop.
Get results from ManageWP
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