private static void iOS(StringBuilder sb, DeviceCoverage coverage)
 {
     sb.Append("<tr>");
     sb.Append("<td class=\"browser\">iOS</td>");
     sb.Append(CreateCell(coverage.iOS_4, "4"));
     sb.Append(CreateCell(coverage.iOS_5, "5"));
     sb.Append(CreateCell(coverage.iOS_6, "6"));
     sb.Append(CreateCell(coverage.iOS_7, "7"));
     sb.Append("</tr>");
 }
 private static void BlackBerry(StringBuilder sb, DeviceCoverage coverage)
 {
     sb.Append("<tr>");
     sb.Append("<td class=\"browser\">BlackBerry</td>");
     sb.Append(EmptyCell);
     sb.Append(EmptyCell);
     sb.Append(EmptyCell);
     sb.Append(CreateCell(coverage.BlackBerry10, "10"));
     sb.Append("</tr>");
 }
 private static void Android(StringBuilder sb, DeviceCoverage coverage)
 {
     sb.Append("<tr>");
     sb.Append("<td class=\"browser\">Android Browser</td>");
     sb.Append(CreateCell(coverage.Android_2_1, "2.1"));
     sb.Append(CreateCell(coverage.Android_2_2, "2.2"));
     sb.Append(CreateCell(coverage.Android_2_3, "2.3"));
     sb.Append(CreateCell(coverage.Android_4_1, "4.1"));
     sb.Append("</tr>");
 }
 private static void AndroidChrome(StringBuilder sb, DeviceCoverage coverage)
 {
     sb.Append("<tr>");
     sb.Append("<td class=\"browser\">Android Chrome</td>");
     sb.Append(EmptyCell);
     sb.Append(EmptyCell);
     sb.Append(EmptyCell);
     sb.Append(CreateCell(coverage.Android_4_1_Chrome, "4.1"));
     sb.Append("</tr>");
 }
        public ActionResult SVG()
        {
            //Inline
            ViewData[DeviceCoverageHelper.DefaultSetName] = new DeviceCoverage
            {
                Android_2_1 = DeviceCoverageAmount.No,
                Android_2_2 = DeviceCoverageAmount.No,
                Android_2_3 = DeviceCoverageAmount.No,
                Android_4_1 = DeviceCoverageAmount.Yes,
                Android_4_1_Chrome = DeviceCoverageAmount.Yes,
                iOS_4 = DeviceCoverageAmount.No,
                iOS_5 = DeviceCoverageAmount.Yes,
                iOS_6 = DeviceCoverageAmount.Yes,
                iOS_7 = DeviceCoverageAmount.Yes,
                BlackBerry10 = DeviceCoverageAmount.Unknown,
                Firefox_Android = DeviceCoverageAmount.Yes,
                FirefoxOS = DeviceCoverageAmount.Yes,
                Opera_Classic_Android = DeviceCoverageAmount.Yes,
                Opera_Webkit_Android = DeviceCoverageAmount.Yes,
                WindowsPhone7_5 = DeviceCoverageAmount.Yes,
                WindowsPhone8 = DeviceCoverageAmount.Yes,
                Desktop_Chrome = DeviceCoverageAmount.Yes,
                Desktop_Firefox = DeviceCoverageAmount.Yes,
                Desktop_InternetExplorer10 = DeviceCoverageAmount.Yes,
                Tablet_InternetExplorer10 = DeviceCoverageAmount.Unknown,
                KindleFire_FirstGen = DeviceCoverageAmount.No,
                KindleFire_HD = DeviceCoverageAmount.Yes,
                GalaxyNexus7 = DeviceCoverageAmount.Yes
            };

            ViewData["ExternalSVG"] = new DeviceCoverage
            {
                Android_2_1 = DeviceCoverageAmount.No,
                Android_2_2 = DeviceCoverageAmount.No,
                Android_2_3 = DeviceCoverageAmount.No,
                Android_4_1 = DeviceCoverageAmount.Yes,
                Android_4_1_Chrome = DeviceCoverageAmount.Yes,
                iOS_4 = DeviceCoverageAmount.Yes,
                iOS_5 = DeviceCoverageAmount.Yes,
                iOS_6 = DeviceCoverageAmount.Yes,
                iOS_7 = DeviceCoverageAmount.Yes,
                BlackBerry10 = DeviceCoverageAmount.Unknown,
                Firefox_Android = DeviceCoverageAmount.Yes,
                FirefoxOS = DeviceCoverageAmount.Yes,
                Opera_Classic_Android = DeviceCoverageAmount.Yes,
                Opera_Webkit_Android = DeviceCoverageAmount.Yes,
                WindowsPhone7_5 = DeviceCoverageAmount.Yes,
                WindowsPhone8 = DeviceCoverageAmount.Yes,
                Desktop_Chrome = DeviceCoverageAmount.Yes,
                Desktop_Firefox = DeviceCoverageAmount.Yes,
                Desktop_InternetExplorer10 = DeviceCoverageAmount.Yes,
                Tablet_InternetExplorer10 = DeviceCoverageAmount.Unknown,
                KindleFire_FirstGen = DeviceCoverageAmount.No,
                KindleFire_HD = DeviceCoverageAmount.Yes,
                GalaxyNexus7 = DeviceCoverageAmount.Yes
            };

            return View();
        }
 private static void iOS(StringBuilder sb, DeviceCoverage coverage)
 {
     sb.Append("<tr>");
     sb.Append("<td class=\"browser\">iOS</td>");
     sb.Append(CreateCell(coverage.iOS_4, "4"));
     sb.Append(CreateCell(coverage.iOS_5, "5"));
     sb.Append(CreateCell(coverage.iOS_6, "6"));
     sb.Append(CreateCell(coverage.iOS_7, "7"));
     sb.Append("</tr>");
 }
 private static void BlackBerry(StringBuilder sb, DeviceCoverage coverage)
 {
     sb.Append("<tr>");
     sb.Append("<td class=\"browser\">BlackBerry</td>");
     sb.Append(EmptyCell);
     sb.Append(EmptyCell);
     sb.Append(EmptyCell);
     sb.Append(CreateCell(coverage.BlackBerry10, "10"));
     sb.Append("</tr>");
 }
 private static void AndroidChrome(StringBuilder sb, DeviceCoverage coverage)
 {
     sb.Append("<tr>");
     sb.Append("<td class=\"browser\">Android Chrome</td>");
     sb.Append(EmptyCell);
     sb.Append(EmptyCell);
     sb.Append(EmptyCell);
     sb.Append(CreateCell(coverage.Android_4_1_Chrome, "4.1"));
     sb.Append("</tr>");
 }
 private static void Android(StringBuilder sb, DeviceCoverage coverage)
 {
     sb.Append("<tr>");
     sb.Append("<td class=\"browser\">Android Browser</td>");
     sb.Append(CreateCell(coverage.Android_2_1, "2.1"));
     sb.Append(CreateCell(coverage.Android_2_2, "2.2"));
     sb.Append(CreateCell(coverage.Android_2_3, "2.3"));
     sb.Append(CreateCell(coverage.Android_4_1, "4.1"));
     sb.Append("</tr>");
 }