aboutsummaryrefslogblamecommitdiffstats
path: root/lib/bzpage.js
blob: d1500319391d4f1de28d2f39a624f5fc1dab2d86 (plain) (tree)
1
2
3
4
5
6
7
8




                                                                                                                                                                                                                   

                                              
                                   




                                                            



                                                                                       
                                                            
                                      
                                      




                                                                                   

                                    
                                      

  


                                                  
/*jslint onevar: false, browser: true, evil: true, laxbreak: true, undef: true, nomen: true, eqeqeq: true, bitwise: true, maxerr: 1000, immed: false, white: false, plusplus: false, regexp: false, undef: false */
/*global jetpack */
// Released under the MIT/X11 license
// http://www.opensource.org/licenses/mit-license.php
"use strict";
var util = require("util");
var simpleStorage = require("simple-storage");
var Color = require("color").Color;

var TriagedDistro = 13;
var NumberOfFrames = 7;
var XMLRPCurl = "https://bugzilla.redhat.com/xmlrpc.cgi";
var bugURL = "https://bugzilla.redhat.com/show_bug.cgi?id=";

// ====================================================================================
// BZPage's methods

var BZPage = exports.BZPage = function BZPage(doc, config) {
    console.log("doc = " + doc.title);
    console.log("config = " + config);
    // constants
    this.SalmonPink = new Color(255, 224, 176); // RGB 255, 224, 176; HSL 36, 2,
                                                // 85
    this.ReporterColor = new Color(255, 255, 166); // RGB 255, 255, 166; HSL 60, 2,
                                                   // 83    
    // initialize dynamic properties
    this.doc = doc;
    console.log("Now we are inside!");
};

BZPage.prototype.getBugId = function getBugId () {
    return util.getBugNo(this.doc.location.href);
};