Financing Available! New Roof as Low as $99/month!*
Owens Corning Attic Insulation
Please let us know if we can help you with your attic insulation needs!
ALL THE COMFORTS OF HOME START WITH A BONE DRY ROOF
About Bone Dry
In business since 1989
Most roofing contractors only last a few years. Bone Dry has been around for three decades.
Largest roofing contractor in the Midwest
Success is a result of satisfied customers. Bone Dry has them in five states.
Owens Corning Roofing Platinum Preferred
Contractors meet strict standards for professionalism, business stability, and customer service, and they offer the best warranty.
Free estimates for all services
Get a free, no obligation estimate on any of our services - it’s easy to get started!
Fill Out the Form Below for a free, fast estimate
Fields marked * are required.
(function(cookieName, domain){
var traffic_source_COOKIE_TOKEN_SEPARATOR = ">>"; //separating between concatenated lead source
var traffic_source_date_SEPARATOR = "|>";
var NONE = "(website)";
domain = domain || window.location.hostname;
function getCookie(cookieName){
var name = cookieName + "=";
var cookieArray = document.cookie.split(';'); //break cookie into array
for(var i = 0; i < cookieArray.length; i++){
var cookie = cookieArray[i].replace(/^\s+|\s+$/g, ''); //replace all space with '' = delete it
if (cookie.indexOf(name)==0){
return cookie.substring(name.length,cookie.length); //
}
}
return null;
}
function getURLParameter(param){
var pageURL = window.location.search.substring(1); //get the query string parameters without the "?"
var URLVariables = pageURL.split('&'); //break the parameters and values attached together to an array
for (var i = 0; i -1) {
if(end === -1) {
end = utmzCookie.length;
}
cookieCampaignName = "utmz:" + utmzCookie.substring((start + UTMSRC.length), end); //get the value of the UTMZ, without the parameter name
}
}
if(cookieCampaignName != "" && isNotNullOrEmpty(urlParamSRC)){ //if there is a campaign name AND there is SRC value
traffic_source = urlParamSRC + traffic_source_COOKIE_TOKEN_SEPARATOR + cookieCampaignName; //concateane the SRC with the existing campaign name
// traffic_source = urlParamSRC + currTime() + traffic_source_COOKIE_TOKEN_SEPARATOR + cookieCampaignName; // Optional: add the session time
} else if(cookieCampaignName != ""){ //if there is campaign name
traffic_source = cookieCampaignName; //just use it for the new cookie
} else if(urlParamSRC != null) { //if there is not campaign name but we have SRC
traffic_source = decodeURI(urlParamSRC); // decode URI of the SRC parameter
// traffic_source = decodeURI(urlParamSRC) + currTime(); // Optional: add the session time
} else if(document.referrer != ""){ //if there is not campaign, and no src, check if there is a referrer,
var referrerHostName = removeProtocol(document.referrer);
var GOOGLE = /www.google/;
var YAHOO = /search.yahoo/;
var BING = /www.bing/;
if(GOOGLE.test(referrerHostName)){
traffic_source = "Google Search";
//traffic_source = "Google Search" + currTime(); // + Optional: Add the current session time. Choose one of them.
} else if(YAHOO.test(referrerHostName)){
traffic_source = "Yahoo Search";
//traffic_source = "Yahoo Search" + currTime();
} else if(BING.test(referrerHostName)){
traffic_source = "Bing Search";
//traffic_source = "Bing Search" + currTime();
} else {
traffic_source = referrerHostName;
//traffic_source = referrerHostName + currTime();
}
} else {
traffic_source = NONE;
}
setCookie(cookieName, traffic_source); //set the cookie
} else if(isNotNullOrEmpty(urlParamSRC)){ //if there is a cookie, add the SRC to the cookie, unless the same src already exists as the first token.
var firstToken = getFirstTokenFromCookie(getCookie(cookieName));
if(firstToken !== "" && urlParamSRC !== firstToken) {
var newTrafficSourceCookie = urlParamSRC + traffic_source_COOKIE_TOKEN_SEPARATOR + getCookie(cookieName); //concetenate new SRC with old cookie values
// var newTrafficSourceCookie = urlParamSRC + currTime() + traffic_source_COOKIE_TOKEN_SEPARATOR + getCookie(cookieName); // Optional: add the time of current session
setCookie(cookieName, newTrafficSourceCookie);
}
}
})("traffic_source", ".bonedry.com");
function getCookie(name) { //Gets the value of traffic_source
var value = "; " + document.cookie;
var parts = value.split("; " + name + "=");
if (parts.length == 2) return parts.pop().split(";").shift();
}
function addTrafficSourceToForm(){ //injects the traffic_source value to the form
jQuery(".lead_source input").each(function() {
this.value = getCookie("traffic_source");
console.log("Executing");
});
}
addTrafficSourceToForm() //initates the process