Skip to content

Instantly share code, notes, and snippets.

@jitsejan
Created October 12, 2017 06:51
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 jitsejan/ccf44862b5e90e67c689858c63016bd1 to your computer and use it in GitHub Desktop.
Save jitsejan/ccf44862b5e90e67c689858c63016bd1 to your computer and use it in GitHub Desktop.
[{"name":"3M Canada Company","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":10,"Total Score":70},{"name":"Aboriginal Peoples Television Network Inc. \/ APTN","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":7,"Training & Skills Development":9,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":9,"Total Score":65},{"name":"Accenture Inc.","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":7,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":64},{"name":"Agrium Inc.","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":8,"Work Atmosphere & Communications":9,"Total Score":67},{"name":"Air Canada","Community Involvement":10,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":4,"Work Atmosphere & Communications":6,"Total Score":61},{"name":"Alberta-Pacific Forest Industries Inc.","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":10,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":10,"Work Atmosphere & Communications":10,"Total Score":77},{"name":"ArcelorMittal Dofasco G.P.","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":10,"Total Score":66},{"name":"BASF Canada Inc.","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":7,"Training & Skills Development":7,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":9,"Total Score":60},{"name":"BC Public Service","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":64},{"name":"BDC \/ Business Development Bank of Canada","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":62},{"name":"Bank of Canada","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":10,"Total Score":71},{"name":"Bayer","Community Involvement":10,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":10,"Total Score":74},{"name":"Bell Canada","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":6,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":68},{"name":"CBCL Limited","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":6,"Training & Skills Development":7,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":9,"Total Score":56},{"name":"CIBC","Community Involvement":10,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":10,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":10,"Total Score":70},{"name":"Cameco Corporation","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":6,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":62},{"name":"Canadian Heritage","Community Involvement":7,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":10,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":6,"Total Score":63},{"name":"Canadian National Railway Company \/ CN","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":7,"Total Score":61},{"name":"Canadian Nuclear Laboratories Ltd.","Community Involvement":6,"Employee Engagement & Performance":5,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":58},{"name":"Canadian Security Intelligence Service \/ CSIS","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":10,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":67},{"name":"Canadian Tire Corporation Limited","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":10,"Total Score":70},{"name":"Cargill Limited","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":7,"Total Score":61},{"name":"Catholic Children's Aid Society of Toronto","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":6,"Training & Skills Development":6,"Vacation & Personal Time-Off":10,"Work Atmosphere & Communications":7,"Total Score":63},{"name":"Ceridian HCM Inc.","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":63},{"name":"Cisco Systems Canada Co.","Community Involvement":10,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":9,"Total Score":65},{"name":"College of Physicians and Surgeons of British Columbia, The","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":64},{"name":"Corus Entertainment Inc.","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":9,"Total Score":65},{"name":"Desjardins Group \/ Mouvement des caisses Desjardins","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":68},{"name":"Diamond Schmitt Architects Inc.","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":7,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":61},{"name":"Digital Extremes Ltd.","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":10,"Total Score":64},{"name":"ESIT Advanced Solutions Inc.","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":10,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":6,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":68},{"name":"EllisDon Corporation","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":10,"Health & Family-Friendly Benefits":6,"Physical Workplace":10,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":63},{"name":"Enbridge Inc.","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":64},{"name":"Export Development Canada","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":66},{"name":"Fidelity Canada","Community Involvement":10,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":67},{"name":"Ford Motor Company of Canada, Limited","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":58},{"name":"General Electric Canada \/ GE","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":65},{"name":"Goldcorp Inc.","Community Involvement":7,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":6,"Training & Skills Development":7,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":7,"Total Score":51},{"name":"Graham Group","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":64},{"name":"Great-West Life Assurance Company, The","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":9,"Total Score":66},{"name":"Hatch Ltd.","Community Involvement":6,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":6,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":61},{"name":"Hospital for Sick Children, The","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":63},{"name":"IMAX Corporation","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":64},{"name":"ISM Canada","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":7,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":66},{"name":"Intact Financial Corporation","Community Involvement":10,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":67},{"name":"Irving Oil","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":9,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":62},{"name":"Ivanho\u00e9 Cambridge Inc.","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":70},{"name":"KPMG LLP","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":10,"Total Score":75},{"name":"L'Or\u00e9al Canada Inc.","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":68},{"name":"Labatt Brewing Company Limited","Community Involvement":9,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":7,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":9,"Total Score":64},{"name":"Loblaw Companies Limited","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":10,"Total Score":72},{"name":"Manitoba Hydro","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":10,"Total Score":66},{"name":"Mars Incorporated","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":66},{"name":"McCarthy T\u00e9trault LLP","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":66},{"name":"Medavie Blue Cross","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":6,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":7,"Total Score":55},{"name":"Mosaic Company, The","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":7,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":59},{"name":"NAV CANADA","Community Involvement":7,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":59},{"name":"National Energy Board","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":10,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":68},{"name":"National Leasing Group Inc.","Community Involvement":9,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":67},{"name":"Nature's Path Foods, Inc.","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":10,"Total Score":61},{"name":"Norton Rose Fulbright Canada LLP","Community Involvement":9,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":6,"Physical Workplace":6,"Training & Skills Development":7,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":9,"Total Score":61},{"name":"Nuance Communications Canada Inc.","Community Involvement":6,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":7,"Training & Skills Development":7,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":9,"Total Score":58},{"name":"Ontario Public Service \/ OPS","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":10,"Physical Workplace":7,"Training & Skills Development":7,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":61},{"name":"OpenText Corporation","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":10,"Total Score":66},{"name":"PCL Constructors Inc.","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":68},{"name":"PepsiCo Canada","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":69},{"name":"Procter & Gamble Inc.","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":67},{"name":"Provincial Health Services Authority \/ PHSA","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":10,"Work Atmosphere & Communications":7,"Total Score":65},{"name":"R.F. Binnie & Associates Ltd.","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":7,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":9,"Total Score":56},{"name":"Raymond James Ltd.","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":6,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":58},{"name":"Rogers Communications Inc.","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":9,"Total Score":68},{"name":"Royal Bank of Canada","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":10,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":69},{"name":"SAP Canada Inc.","Community Involvement":9,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":68},{"name":"Salesforce Canada Corporation","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":7,"Total Score":67},{"name":"Samsung Electronics Canada Inc.","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":67},{"name":"Sandoz Canada Inc.","Community Involvement":7,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":6,"Physical Workplace":7,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":9,"Total Score":61},{"name":"Saskatchewan Government Insurance \/ SGI","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":7,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":63},{"name":"Saskatchewan Research Council \/ SRC","Community Involvement":6,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":6,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":7,"Total Score":61},{"name":"Shaw Communications Inc.","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":63},{"name":"Shell Canada Limited","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":10,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":6,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":9,"Total Score":70},{"name":"Siemens Canada Limited","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":66},{"name":"Simon Fraser University","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":10,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":9,"Work Atmosphere & Communications":9,"Total Score":71},{"name":"Stryker Canada Inc.","Community Involvement":10,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":9,"Training & Skills Development":8,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":66},{"name":"Sunnybrook Health Sciences Centre","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":10,"Work Atmosphere & Communications":9,"Total Score":72},{"name":"TD Bank Group","Community Involvement":10,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":10,"Health & Family-Friendly Benefits":9,"Physical Workplace":7,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":10,"Total Score":73},{"name":"TELUS Corporation","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":69},{"name":"Thomson Reuters Canada Limited","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":10,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":64},{"name":"Toronto International Film Festival Inc. \/ TIFF","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":6,"Health & Family-Friendly Benefits":9,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":60},{"name":"Toronto, City of","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":7,"Total Score":64},{"name":"Toyota Motor Manufacturing Canada Inc. \/ TMMC","Community Involvement":10,"Employee Engagement & Performance":9,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":10,"Work Atmosphere & Communications":9,"Total Score":74},{"name":"Treasury Board of Canada Secretariat","Community Involvement":7,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":6,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":6,"Total Score":56},{"name":"Ubisoft Toronto Inc.","Community Involvement":9,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":7,"Physical Workplace":10,"Training & Skills Development":7,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":10,"Total Score":61},{"name":"Union Gas Limited","Community Involvement":10,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":10,"Health & Family-Friendly Benefits":7,"Physical Workplace":7,"Training & Skills Development":10,"Vacation & Personal Time-Off":5,"Work Atmosphere & Communications":9,"Total Score":68},{"name":"University of New Brunswick \/ UNB","Community Involvement":7,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":10,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":9,"Total Score":67},{"name":"University of Toronto","Community Involvement":9,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":67},{"name":"University of Waterloo","Community Involvement":6,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":9,"Physical Workplace":10,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":64},{"name":"Verafin Inc.","Community Involvement":9,"Employee Engagement & Performance":10,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":7,"Training & Skills Development":9,"Vacation & Personal Time-Off":10,"Work Atmosphere & Communications":9,"Total Score":70},{"name":"West Fraser Timber Co. Ltd.","Community Involvement":7,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":6,"Physical Workplace":9,"Training & Skills Development":7,"Vacation & Personal Time-Off":6,"Work Atmosphere & Communications":6,"Total Score":56},{"name":"World Vision Canada","Community Involvement":10,"Employee Engagement & Performance":7,"Financial Benefits & Compensation":7,"Health & Family-Friendly Benefits":9,"Physical Workplace":7,"Training & Skills Development":9,"Vacation & Personal Time-Off":7,"Work Atmosphere & Communications":7,"Total Score":63},{"name":"Yukon, Government of","Community Involvement":7,"Employee Engagement & Performance":6,"Financial Benefits & Compensation":9,"Health & Family-Friendly Benefits":10,"Physical Workplace":6,"Training & Skills Development":7,"Vacation & Personal Time-Off":10,"Work Atmosphere & Communications":7,"Total Score":62}]
<link rel='stylesheet' href='style.css' />
<script src="https://unpkg.com/vue"></script>
<!-- Use JQuery to load the JSON file !-->
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
<title>Grid example 01</title>
<div id="vue-app">
<form id="search">
Search
<input name="query" v-model="searchQuery">
</form>
<data-grid :data="gridData" :columns="gridColumns" :filter-key="searchQuery">
</data-grid>
</div>
<script type="text/x-template" id="data-template">
<table>
<thead>
<tr>
<th v-for="key in columns" @click="sortBy(key)" :class="{ active: sortKey == key }">
{{ key | capitalize }}
<span class="arrow" :class="sortOrders[key] > 0 ? 'asc' : 'dsc'">
</span>
</th>
</tr>
</thead>
<tbody>
<tr v-for="entry in filteredData">
<td v-for="key in columns">
{{entry[key]}}
</td>
</tr>
</tbody>
</table>
</script>
<script src="script.js"></script>
// Source: http://www.canadastop100.com/
console.log(Vue.version);
function loadJSON(path, success, error)
{
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function()
{
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
if (success)
success(JSON.parse(xhr.responseText));
} else {
if (error)
error(xhr);
}
}
};
xhr.open("GET", path, true);
xhr.send();
}
$.getJSON("canadastop100.json", function(laptopData) {
console.log(laptopData);
Vue.component('data-grid', {
template: '#data-template',
props: {
data: Array,
columns: Array,
filterKey: String
},
data: function() {
var sortOrders = {}
this.columns.forEach(function(key) {
sortOrders[key] = 1
})
return {
sortKey: '',
sortOrders: sortOrders
}
},
computed: {
filteredData: function() {
var sortKey = this.sortKey
var filterKey = this.filterKey && this.filterKey.toLowerCase()
var order = this.sortOrders[sortKey] || 1
var data = this.data
if (filterKey) {
data = data.filter(function(row) {
return Object.keys(row).some(function(key) {
return String(row[key]).toLowerCase().indexOf(filterKey) > -1
})
})
}
if (sortKey) {
data = data.slice().sort(function(a, b) {
a = a[sortKey]
b = b[sortKey]
return (a === b ? 0 : a > b ? 1 : -1) * order
})
}
return data
}
},
filters: {
capitalize: function(str) {
return str.charAt(0).toUpperCase() + str.slice(1)
}
},
methods: {
sortBy: function(key) {
this.sortKey = key
this.sortOrders[key] = this.sortOrders[key] * -1
}
}
})
var vueApp = new Vue({
el: '#vue-app',
data: {
searchQuery: '',
gridColumns: Object.keys(laptopData[0]),
gridData: laptopData
}
})
});
table {
border: 2px solid rgb(102, 153, 255);
border-radius: 3px;
background-color: #fff;
}
th {
background-color: rgb(102, 153, 255);
color: rgba(255, 255, 255, 0.66);
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
td {
background-color: #f9f9f9;
}
th,
td {
min-width: 120px;
padding: 10px 20px;
}
th.active {
color: #fff;
}
th.active .arrow {
opacity: 1;
}
.arrow {
display: inline-block;
vertical-align: middle;
width: 0;
height: 0;
margin-left: 5px;
opacity: 0.66;
}
.arrow.asc {
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 4px solid #fff;
}
.arrow.dsc {
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment