Skip to content

Instantly share code, notes, and snippets.

@jianminchen
Created April 30, 2020 18:06
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 jianminchen/8c3f0d33918d871746616dc26b776080 to your computer and use it in GitHub Desktop.
Save jianminchen/8c3f0d33918d871746616dc26b776080 to your computer and use it in GitHub Desktop.
coronavirus project showcase - make it simple - April 30, 2020
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
/// <summary>
/// Summary description for Html_Div_PIS
/// </summary>
/// namespace
///
/// https://msdn.microsoft.com/en-us/library/z2kcy19k.aspx
///
namespace MainSlideShow.Html
{
public class HtmlDivSubTitle
{
public static string cssClass = "subTitle";
public HtmlDivSubTitle()
{
//
// TODO: Add constructor logic here
//
}
/// <summary>
/// April 27, 2020
/// Add id to div html
/// March 14, 2016
/// </summary>
/// <param name="subTitle"></param>
/// <returns></returns>
public static string Compose(string name, string subTitle)
{ //March 14, 2016
string html = "<div id=\"" + name + "\" class=\"mount_id ";
html += cssClass;
html += "\" class=\"grid_2\">";
html += subTitle;
html += "</div>";
return html;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment