May 2019
Beginner to intermediate
466 pages
10h 44m
English
I've added a few more UI tweaks to the WebApp.jl file to spice things up a bit. Here are the important parts—please download the full file from https://github.com/TrainingByPackt/Julia-1-Programming-Complete-Reference-Guide/tree/master/Chapter14/sixdegrees/WebApp.jl:
module WebApp # code truncated # function history(game) html = """<ol class="list-group">""" iter = 0 for a in game.history html *= """ <li class="list-group-item"> <a href="/$(game.id)/back/$(iter + 1)">$(a.title)</a> </li> """ iter += 1 end html * "</ol>" end function objective(game) """ <div class="jumbotron"> <h3>Go from <span class="badge badge-info">$(game.articles[1].title)</span> to <span class="badge badge-info">$(game.articles[end].title)</span> </h3> ...
Read now
Unlock full access