Using bootstrap twitter with google blogger

梦想与她 提交于 2019-12-06 01:28:36

问题


I've been trying to use bootstrap twitter on my google blog on blogger.com. Apparently it is not working, and I am quite sure that the problem is how I am including the css and js files. I've uploaded the .css and .js files as .txt files to an online plain .txt upload server. I am including them in the head.

bootstrap.css

<link href='http://m.uploadedit.com/b013/1366225851722.txt' rel='stylesheet'/>

bootstrap.min.css

<link href='http://m.uploadedit.com/b013/1366225875450.txt' rel='stylesheet'/>

bootstrap-responsive.css

<link href='http://m.uploadedit.com/b013/136622647822.txt' rel='stylesheet'/>

JQUERY

<script src='//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js'/>
<script src='//ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js'/>  
<script src='http://m.uploadedit.com/b013/1366226081928.txt'/>

bootstrap.js

<script src='http://m.uploadedit.com/b013/1366225665368.txt'/> 

bootsrap.min.js

<script src='http://m.uploadedit.com/b013/1366225732588.txt'/> 

Is it not possible to link to these files when they are .txt? If not what alternatives do I have? I've seen both dropbox and google drive mentioned on a blog post, but as far as I've tried and searched for It is not possible to have a plain text page - dropbox and drive adds html for their interfaces.

UPDATE: I solved it by using a free webhost uploading the plain .js and .css like THIS - I just googled "free webhost".

The problem is that free webhosts can be rather slow - and the webhost I've chosen informs about DDOS attacks. Is there a better alternative - if I do not want to pay for serverspace?


回答1:


You can use netdna's cdn for bootstrap: http://www.bootstrapcdn.com

I'm using it and I'm highly satisfied with the result (http://pr-nizar.blogspot.com).

Or you can use DropBox as a CDN if you're using a customized version of bootstrap.




回答2:


What about if you use links of Bootstrap Twitter files from jsDeliver which is a free CDN for javascript libraries, jQuery plugins, fonts and CSS frameworks.




回答3:


Ya,there is Better Alternative

1.Go to Google Code.Its Free :)

2.Click on "Create a new Project"

3.Fill above a form which comes up with your information and click on "Create project".

4.Click on "Downloads" tab.Now click on "New download" tab.

5.Fill up the needed information. Browse for your Js/css file file and attach it. Now click on "Submit file".

6.If you want to get direct link of your java script file,click on file name and select "Copy link address".



来源:https://stackoverflow.com/questions/16070994/using-bootstrap-twitter-with-google-blogger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!