Skip to content

Instantly share code, notes, and snippets.

View Fprince333's full-sized avatar

Will Smith Fprince333

View GitHub Profile
@Fprince333
Fprince333 / htbh.html
Last active October 22, 2021 15:36
#HereToBeHeard Inline HtML
<style>
main {
margin-bottom: 0;
}
#section-2--block-3 {
text-align: center;
}
#section-2--block-3
> div
> div
@Fprince333
Fprince333 / iframe-style.html
Last active December 4, 2020 03:54
Iframe CSS
<style>
@media screen and (max-width: 767px){
.content_wrapper {
width: 100%;
max-width: unset;
}
}
iframe {
width: 100%;
height: calc(95vh - 105px);
@Fprince333
Fprince333 / contenthubDeepLink.js
Last active January 10, 2020 16:55
Inject this script to local market sites and deep link via the URL query parameter "country" e.g. https://www.mars.com/admin/content/acquia-contenthub?country=africa or https://www.mars.com/admin/content/acquia-contenthub?country=hong-kong
<style type="text/css">.item-list a {
font-family: MarsCentra-Book, sans-serif;
font-size: 16px;
color: #0000a0;
text-decoration: underline;
letter-spacing: normal;
}
.policy-list .item-list {
margin-bottom: 60px;
<style type="text/css">.views-field-field-heading a {
font-size: 20px;
line-height: 26px;
font-family: MarsCentra-Bold, sans-serif;
color: #0000a0;
padding-bottom: 7px;
height: 52px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
$(function() {
$(
"#MainContent_FirstName, #MainContent_LastName, #MainContent_CompanyOrSchoolName, #MainContent_Phone, #MainContent_Profession, #MainContent_Address, #MainContent_City, #MainContent_Country, #MainContent_State, #MainContent_PostalCode, #MainContent_Email, #MainContent_DesiredPassword, #MainContent_ConfirmPassword"
).addClass("required");
$("#form1").showProgress();
$(".customerBtn").click(function() {
$(".studentEducators").hide();
$(".register").show();
$("#registerTitle").html("Register");
$(".companyschoolname").html("Company<sup>*</sup>");
@Fprince333
Fprince333 / styles.css
Created March 12, 2017 21:52
vs code font themes
.type.storage,.type.storage.declaration, .storage.class.modifier {
font-family: 'flottflott';
font-size: 1.7em;
}
.type.storage.arrow.function {
font-family: 'Fira Code'
}
.decorator.name, .decorator.punctuation:not(.block), .import.keyword {
@Fprince333
Fprince333 / article.html
Last active June 15, 2021 13:12 — forked from letanure/article.html
Meta Tag Template Reference
<!-- Place this data between the <head> tags of your website -->
<title>Page Title. Maximum length 60-70 characters</title>
<meta name="description" content="Page description. No longer than 155 characters." />
<!-- Twitter Card data -->
<meta name="twitter:card" value="summary">
<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
@Fprince333
Fprince333 / gist:b6e1bc5dd3529539700e
Created October 1, 2015 15:50 — forked from theshka/gist:b15de24701f77de6c479
All Search and Social Media Meta Tags Starter Template
// code via http://scotch.io/quick-tips/all-search-and-social-media-meta-tags-starter-template
#Search Engines / Google
<!-- SEO -->
<meta name="author" content="Author name here....">
<meta name="description" content="Description text here.....">
<link rel="canonical" href="URL here..."> <!-- info: http://goo.gl/0ta7jy -->
#Twitter Cards (Large Image)
<!-- Social: Twitter -->
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')