Commit 85a3e7e2 authored by Charlie Hoy's avatar Charlie Hoy
Browse files

removing the need for variables.js

parent fa072696
// Copyright (C) 2018 Charlie Hoy <>
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3 of the License, or (at your
// option) any later version.
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// Public License for more details.
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
// define all variables used in the webpages
var luminosity_distance = "luminosity_distance"
var dec = "dec"
var a_2 = "a_2"
var a_1 = "a_1"
var geocent_time = "geocent_time"
var phi_jl = "phi_jl"
var psi = "psi"
var ra = "ra"
var phase = "phase"
var mass_2 = "mass_2"
var mass_1 = "mass_1"
var phi_12 = "phi_12"
var tilt_2 = "tilt_2"
var iota = "iota"
var tilt_1 = "tilt_1"
var IMRPhenomPv2 = "IMRPhenomPv2"
var IMRPhenomP = "IMRPhenomP"
var corner = "corner"
var Comparison = "Comparison"
var config = "config"
......@@ -180,7 +180,7 @@ class page():
self.add_content("<div class='dropdown-menu' aria-labelledby='navbarDropdown'>\n", indent=12)
for j in i[1]:
self.add_content("<a class='dropdown-item' "
"href='#' onclick='grab_html({})'"
"href='#' onclick='grab_html(\"{}\")'"
">{}</a>\n".format(j, j), indent=14)
self.add_content("</div>\n", indent=12)
self.add_content("</li>\n", indent=10)
......@@ -191,7 +191,7 @@ class page():
"href='{}/{}.html'>{}</a>\n".format(self.base_url, i, i), indent=10)
self.add_content("<a class='nav-link' "
"href='#' onclick='grab_html({})'"
"href='#' onclick='grab_html(\"{}\")'"
">{}</a>\n".format(i, i), indent=10)
self.add_content("</li>\n", indent=8)
self.add_content("</ul>\n", indent=6)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment