/* magnific popup */
jQuery(document).ready(function($)
{
$('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]').each(function()
{
if($(this).parents('.gallery').length == 0)
{
$(this).magnificPopup
({
type:'image',
closeOnContentClick: true,
});
}
});
$('.gallery').each(function()
{
$(this).magnificPopup
({
delegate: 'a',
type: 'image',
gallery: {enabled: true}
});
});
});/* magnific popup */
jQuery(document).ready(function($)
{
$('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]').each(function()
{
if($(this).parents('.gallery').length == 0)
{
$(this).magnificPopup
({
type:'image',
closeOnContentClick: true,
});
}
});
$('.gallery').each(function()
{
$(this).magnificPopup
({
delegate: 'a',
type: 'image',
gallery: {enabled: true}
});
});
});
/* magnific popup */
jQuery(document).ready(function($)
{
$('a[href*=".jpg"], a[href*=".jpeg"], a[href*=".png"], a[href*=".gif"]').each(function()
{
if($(this).parents('.gallery').length == 0)
{
$(this).magnificPopup
({
type:'image',
closeOnContentClick: true,
});
}
});
$('.gallery').each(function()
{
$(this).magnificPopup
({
delegate: 'a',
type: 'image',
gallery: {enabled: true}
});
});
});
private static final String URL = "jdbc:mysql://localhost:3306/dbname";
private static final String USERNAME = "bla-bla";
private static final String PASSWORD = "bla-bla";
public static void main(String[] args) {
Connection connection;
try {
Driver driver = new FabricMySQLDriver();
DriverManager.registerDriver(driver);
connection = DriverManager.getConnection(URL, USERNAME, PASSWORD);
if (!connection.isClosed()) {
System.out.println("Соединение с БД установлено");
}
}catch (SQLException e) {
System.out.println("Не удалось загрузить класс драйвера");
}
}