Skip to content

Instantly share code, notes, and snippets.

@arjun00231
arjun00231 / bs_modal_scroll_fix.css
Created July 15, 2016 12:29
bs_modal_scroll_fix.css
<style>
body.modal-open > .wrap {
overflow: hidden;
height: 100%;
}
.modal-content,
.modal-dialog,
.modal-body {
height: inherit;
@arjun00231
arjun00231 / CSS Animated Checkboxes
Created December 16, 2016 10:17
CSS Animated Checkboxes
input[type=checkbox] {
opacity: 1;
float:left;
}
input[type=checkbox] {
margin: 0 0 0 20px;
position: relative;
cursor: pointer;
font-size: 16px;
@arjun00231
arjun00231 / Create a pdf of vf page and attach to the record.
Last active January 20, 2017 12:04
Create a pdf of vf page and attach to the record.
public PageReference generatePdf() {
//PageReference pdf = new PageReference('/apex/yourPageName');
//Page.yourPageName;
PageReference targetPage = Page.yourPageName;
targetPage.getParameters().put('id',objOpp.Id);
//pdf.setRedirect(true);
system.debug('<<<<<<<pdf : '+targetPage);
Attachment attach = new Attachment();
Blob targetBody;
@arjun00231
arjun00231 / Partage Html
Last active July 19, 2017 13:42
Partage create account page
<body>
<form>
<div class= "button"><input type="button" value= "< Partage Pay"></div>
<h3>Create Account</h3>
<div><input type="text" placeholder="First Name" pattern="[A-Za-z]{3,}" required/></div>
<div><input type="text" placeholder="Last Name" pattern="[A-Z|a-z]{4,}" required/></div>
<div><input type="text" placeholder="Monthly Budget" pattern="[1-9]{3,}"required/></div>
<div><input type="tel" placeholder="Contact Number" pattern ="[7|8|9][0-9]{9}" required/></div>
<div><input type="password" placeholder="Password" required minlength="8" </div>