Jump to content

[CEF]Problem with bootstrap.


Recommended Posts

Hello, i'm trying to use bootstrap in my script, so I created this lua code:

setDevelopmentMode(true, true) 


local screenWidth, screenHeight = guiGetScreenSize()

local loginGui = GuiBrowser(screenWidth / 2 - 225, screenHeight / 2 - 210, 450, 420, true, false, false)

local loginBrowser = loginGui:getBrowser()


addEventHandler("onClientBrowserCreated", loginBrowser, function()




And this html code:



        <!-- Latest compiled and minified CSS -->

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">


        <!-- Optional theme -->

        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap-theme.min.css">


        <!-- Latest compiled and minified JavaScript -->

        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>



        <h1>Hello, world!</h1>

        <button class="btn btn-primary">Test</button>



And it looks like that:


So, bootstrap don't load.

Anyone got this problem?

Link to post

Okay, thank you. It works.

To anyone who have this problem:

Download bootstrap(and jquery) files, then paste them on server, add them in meta.xml.

Use it in html with path like this:


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...