profile

in #blokz6 years ago (edited)

[
{
"name" : "Snahn IP",
"title" : "guru",
"birthyear" : "1980",
"sign" : "Sagittarius",
"location" : "Brentwood, CA USA",
"skills" : "Self Development, DriveIdeas2Creation, Blockchain, JavaScript, Blokz Profile",
"biofull" : "Work in Progress ^_^, check @sn0n for now. Sempernamaste ~Rob"
},
{
"Friend1" : "@sn0n",
"Friend2" : "@steemdrops",
"Friend3" : "@rishi556"
}
]

Sort:  

https://sn0n.github.io/demo/?steem=blokz is currently broken because of a lack in skills (&hobbies).

The code responsible for this is

var skills = blokify[0].skills;

skillsLog = skills.split(',');
skillsLog.forEach(function(entry) {
    console.log(entry);
    entryy = entry.replace(/\s+/g, '');
    entryy = entryy.replace(/[^a-zA-Z0-9]/g,'');
    entryy = entryy.toLowerCase();
    var a = document.createElement('a');
    var linkText = document.createTextNode(entry);
    a.appendChild(linkText);
    a.title = entry;
    a.target = "_blank";
    a.href = "http://steemit.com/trending/"+entryy;
    document.getElementById("skills").appendChild(a);

I'll fix this on both ends (@blokz profile and sn0n.github) today.

fixed. also fixed the friends section which included a similar error, which is variables not being set in the array.

Slowly my project grows. ^>^

Posted using Partiko Android